public interface ProtocolSession extends Session
Session
which represents high-level protocol connection between two
endpoints regardless of underlying transport types.Session
Modifier and Type | Method and Description |
---|---|
ProtocolDecoder |
getDecoder()
Returns the
ProtocolDecoder for this session. |
ProtocolEncoder |
getEncoder()
Returns the
ProtocolEncoder for this session. |
ProtocolFilterChain |
getFilterChain()
Returns the filter chain that only affects this session.
|
ProtocolHandler |
getHandler()
Returns the
ProtocolHandler which handles this session. |
void |
write(java.lang.Object message)
Writes the specified
message to remote peer. |
close, close, getAttachment, getAttribute, getAttributeKeys, getConfig, getCreationTime, getIdleCount, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getLocalAddress, getReadBytes, getRemoteAddress, getScheduledWriteRequests, getTransportType, getWrittenBytes, getWrittenWriteRequests, isConnected, isIdle, removeAttribute, setAttachment, setAttribute
ProtocolHandler getHandler()
ProtocolHandler
which handles this session.ProtocolFilterChain getFilterChain()
ProtocolEncoder getEncoder()
ProtocolEncoder
for this session.ProtocolDecoder getDecoder()
ProtocolDecoder
for this session.void write(java.lang.Object message)
message
to remote peer. This operation
is asynchronous; ProtocolHandler.messageSent(ProtocolSession, Object)
will be invoked when the message is actually sent to remote peer.