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
IOException
void closeSelectionKey(SelectionKey key)
void onWrite(SelectionKey key)
void onRead(SelectionKey key)
void onConnect(SelectionKey key) throws IOException
IOException
void closeChannel(Selector selector) throws IOException
IOException
Copyright © 2021. All rights reserved.