public interface IoSessionRecycler
IoServiceConfig
.Modifier and Type | Field and Description |
---|---|
static IoSessionRecycler |
NOOP
A dummy recycler that doesn't recycle any sessions.
|
Modifier and Type | Method and 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
.Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.