ExpiringSessionRecyclerpublic interface IoSessionRecycler
IoServiceConfig.| Modifier and Type | Field | Description |
|---|---|---|
static IoSessionRecycler |
NOOP |
A dummy recycler that doesn't recycle any sessions.
|
| Modifier and Type | Method | Description |
|---|---|---|
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
void put(IoSession session)
IoSession.session - the new IoSession.IoSession recycle(java.net.SocketAddress localAddress, java.net.SocketAddress remoteAddress)
IoSession.