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