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 ISelectorLoopControllerchannel - the channel that was acceptedtruepublic boolean processConnection(SelectableChannel channel)
processConnection in interface ISelectorLoopControllerchannel - the connecting channeltrueCopyright © 2017–2022 SNF4J.ORG. All rights reserved.