public interface IoSessionRecycler
IoServiceConfig
.限定符和类型 | 字段和说明 |
---|---|
static IoSessionRecycler |
NOOP
A dummy recycler that doesn't recycle any sessions.
|
限定符和类型 | 方法和说明 |
---|---|
void |
put(IoSession session)
Called when the underlying transport creates or writes a new
IoSession . |
IoSession |
recycle(java.net.SocketAddress localAddress,
java.net.SocketAddress remoteAddress)
Attempts to retrieve a recycled
IoSession . |
void |
remove(IoSession session)
Called when an
IoSession is explicitly closed. |
static final IoSessionRecycler NOOP