public class DefaultSelectorLoopController extends Object implements ISelectorLoopController
Modifier and Type | Field and Description |
---|---|
static DefaultSelectorLoopController |
DEFAULT
Default controller that permits all controlled operations.
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultSelectorLoopController()
Constructs the default controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processAccepted(SelectableChannel channel)
Called to determine if the calling selector loop is permitted to process
the accepted channel.
|
boolean |
processConnection(SelectableChannel channel)
Called to determine if the calling selector loop is permitted to process
the connecting channel.
|
public static final DefaultSelectorLoopController DEFAULT
protected DefaultSelectorLoopController()
public boolean processAccepted(SelectableChannel channel)
processAccepted
in interface ISelectorLoopController
channel
- the channel that was acceptedtrue
public boolean processConnection(SelectableChannel channel)
processConnection
in interface ISelectorLoopController
channel
- the connecting channeltrue
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.