Package com.google.code.yanf4j.nio
Interface NioSession
- All Superinterfaces:
Session
- All Known Implementing Classes:
AbstractNioSession,MemcachedTCPSession,NioTCPSession
Nio connection
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.code.yanf4j.core.Session
Session.SessionStatus -
Method Summary
Modifier and TypeMethodDescriptionchannel()return the channel for this connectionvoidenableRead(Selector selector) Enable read eventvoidenableWrite(Selector selector) Enable write eventvoidWhen io event occuredMethods inherited from interface com.google.code.yanf4j.core.Session
clearAttributes, close, flush, getAttribute, getDecoder, getEncoder, getHandler, getLastOperationTimeStamp, getLocalAddress, getReadBufferByteOrder, getRemoteSocketAddress, getScheduleWritenBytes, getSessionIdleTimeout, getSessionTimeout, isClosed, isExpired, isHandleReadWriteConcurrently, isIdle, isLoopbackConnection, isUseBlockingRead, isUseBlockingWrite, removeAttribute, setAttribute, setAttributeIfAbsent, setDecoder, setEncoder, setHandleReadWriteConcurrently, setReadBufferByteOrder, setSessionIdleTimeout, setSessionTimeout, setUseBlockingRead, setUseBlockingWrite, start, write
-
Method Details
-
onEvent
When io event occured- Parameters:
event-selector-
-
enableRead
Enable read event- Parameters:
selector-
-
enableWrite
Enable write event- Parameters:
selector-
-
channel
SelectableChannel channel()return the channel for this connection- Returns:
-