Package com.google.code.yanf4j.nio
Interface SelectionKeyHandler
-
- All Known Implementing Classes:
MemcachedConnector,NioController,SocketChannelController,TCPController
public interface SelectionKeyHandlerSelectionKey handler- Author:
- dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseChannel(Selector selector)voidcloseSelectionKey(SelectionKey key)voidonAccept(SelectionKey sk)voidonConnect(SelectionKey key)voidonRead(SelectionKey key)voidonWrite(SelectionKey key)
-
-
-
Method Detail
-
onAccept
void onAccept(SelectionKey sk) throws IOException
- Throws:
IOException
-
closeSelectionKey
void closeSelectionKey(SelectionKey key)
-
onWrite
void onWrite(SelectionKey key)
-
onRead
void onRead(SelectionKey key)
-
onConnect
void onConnect(SelectionKey key) throws IOException
- Throws:
IOException
-
closeChannel
void closeChannel(Selector selector) throws IOException
- Throws:
IOException
-
-