public interface IoSession extends Session
Session
that represents low-level I/O connection between two
endpoints regardless of underlying transport types.Session
Modifier and Type | Method and Description |
---|---|
IoFilterChain |
getFilterChain()
Returns the filter chain that only affects this session.
|
IoHandler |
getHandler()
Returns the event handler for this session.
|
void |
write(ByteBuffer buf,
java.lang.Object marker)
Writes the content of the specified
buf . |
close, close, getAttachment, getAttribute, getAttributeKeys, getConfig, getCreationTime, getIdleCount, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getLocalAddress, getReadBytes, getRemoteAddress, getScheduledWriteRequests, getTransportType, getWrittenBytes, getWrittenWriteRequests, isConnected, isIdle, removeAttribute, setAttachment, setAttribute
IoHandler getHandler()
IoFilterChain getFilterChain()
void write(ByteBuffer buf, java.lang.Object marker)
buf
.
This operation is asynchronous, and you'll get notified by
IoHandler.dataWritten(IoSession, Object)
event.
The specified marker
will be passes as a parameter.