public final class DefaultSelectionKeyHandler extends Object implements SelectionKeyHandler
DEFAULT_SELECTION_KEY_HANDLER| Constructor and Description |
|---|
DefaultSelectionKeyHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(SelectionKey key) |
NIOConnection |
getConnectionForKey(SelectionKey selectionKey) |
IOEvent[] |
getIOEvents(int interest) |
int |
ioEvent2SelectionKeyInterest(IOEvent ioEvent) |
void |
onKeyDeregistered(SelectionKey key) |
void |
onKeyRegistered(SelectionKey key) |
boolean |
onProcessInterest(SelectionKey key,
int interest) |
IOEvent |
selectionKeyInterest2IoEvent(int selectionKeyInterest) |
void |
setConnectionForKey(NIOConnection connection,
SelectionKey selectionKey) |
public void onKeyRegistered(SelectionKey key)
onKeyRegistered in interface SelectionKeyHandlerpublic void onKeyDeregistered(SelectionKey key)
onKeyDeregistered in interface SelectionKeyHandlerpublic void cancel(SelectionKey key) throws IOException
cancel in interface SelectionKeyHandlerIOExceptionpublic int ioEvent2SelectionKeyInterest(IOEvent ioEvent)
ioEvent2SelectionKeyInterest in interface SelectionKeyHandlerpublic IOEvent[] getIOEvents(int interest)
getIOEvents in interface SelectionKeyHandlerpublic IOEvent selectionKeyInterest2IoEvent(int selectionKeyInterest)
selectionKeyInterest2IoEvent in interface SelectionKeyHandlerpublic boolean onProcessInterest(SelectionKey key, int interest) throws IOException
onProcessInterest in interface SelectionKeyHandlerIOExceptionpublic NIOConnection getConnectionForKey(SelectionKey selectionKey)
getConnectionForKey in interface SelectionKeyHandlerpublic void setConnectionForKey(NIOConnection connection, SelectionKey selectionKey)
setConnectionForKey in interface SelectionKeyHandlerCopyright © 2013 Oracle Corporation. All Rights Reserved.