public abstract class SelectorEventHandler extends Object
| Constructor and Description |
|---|
SelectorEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canRunAsync() |
abstract SelectionKey |
initialInterestRegistration()
Method must be invoked in selector thread.
|
abstract void |
run(SelectionKey key) |
abstract void |
runAsync(SelectionKey key) |
public abstract SelectionKey initialInterestRegistration() throws ClosedChannelException
ClosedChannelExceptionpublic abstract boolean canRunAsync()
public abstract void runAsync(SelectionKey key) throws IOException
IOExceptionpublic abstract void run(SelectionKey key) throws IOException
IOExceptionCopyright © 2018 SPF4J. All rights reserved.