SelectionKeyHandler implementations are responsible for handling SelectionKey life cycle events.
| Modifier and Type | Field and Description |
|---|---|
| public static final SelectionKeyHandler | DEFAULT_SELECTION_KEY_HANDLER
The default |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public NIOConnection | |
| public IOEvent[] | |
| public int | |
| public void | |
| public void | |
| public boolean | |
| public IOEvent | |
| public void |
| DEFAULT_SELECTION_KEY_HANDLER | back to summary |
|---|---|
| public static final SelectionKeyHandler DEFAULT_SELECTION_KEY_HANDLER
The default
The default may be changed by setting the system property
| |
| cancel | back to summary |
|---|---|
| public void cancel(SelectionKey key) throws IOException | |
| getConnectionForKey | back to summary |
|---|---|
| public NIOConnection getConnectionForKey(SelectionKey selectionKey) | |
| getIOEvents | back to summary |
|---|---|
| public IOEvent[] getIOEvents(int interest) | |
| ioEvent2SelectionKeyInterest | back to summary |
|---|---|
| public int ioEvent2SelectionKeyInterest(IOEvent ioEvent) | |
| onKeyDeregistered | back to summary |
|---|---|
| public void onKeyDeregistered(SelectionKey key) | |
| onKeyRegistered | back to summary |
|---|---|
| public void onKeyRegistered(SelectionKey key) | |
| onProcessInterest | back to summary |
|---|---|
| public boolean onProcessInterest(SelectionKey key, int interest) throws IOException | |
| selectionKeyInterest2IoEvent | back to summary |
|---|---|
| public IOEvent selectionKeyInterest2IoEvent(int selectionKeyInterest) | |
| setConnectionForKey | back to summary |
|---|---|
| public void setConnectionForKey(NIOConnection connection, SelectionKey selectionKey) | |