public interface IoSession extends PacketWriter, Closeable
CLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(Object key)
Returns the value of the user-defined attribute of this session.
|
long |
getId() |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
IoService |
getService() |
Object |
setAttribute(Object key,
Object value)
Sets a user-defined attribute.
|
writePacketaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerlong getId()
Object getAttribute(Object key)
key - the key of the attributeObject setAttribute(Object key, Object value)
key - the key of the attributevalue - the value of the attributeSocketAddress getRemoteAddress()
SocketAddress getLocalAddress()
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.