public interface SelectionKeyHandler
| Modifier and Type | Method and Description |
|---|---|
void |
closeChannel(Selector selector) |
void |
closeSelectionKey(SelectionKey key) |
void |
onAccept(SelectionKey sk) |
void |
onConnect(SelectionKey key) |
void |
onRead(SelectionKey key) |
void |
onWrite(SelectionKey key) |
void onAccept(SelectionKey sk) throws IOException
IOExceptionvoid closeSelectionKey(SelectionKey key)
void onWrite(SelectionKey key)
void onRead(SelectionKey key)
void onConnect(SelectionKey key) throws IOException
IOExceptionvoid closeChannel(Selector selector) throws IOException
IOExceptionCopyright © 2016. All rights reserved.