|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoSessionRecycler
A connectionless transport can recycle existing sessions by assigning an
IoSessionRecycler
to an IoService
.
Field Summary | |
---|---|
static IoSessionRecycler |
NOOP
A dummy recycler that doesn't recycle any sessions. |
Method Summary | |
---|---|
void |
put(IoSession session)
Called when the underlying transport creates or writes a new IoSession . |
IoSession |
recycle(SocketAddress localAddress,
SocketAddress remoteAddress)
Attempts to retrieve a recycled IoSession . |
void |
remove(IoSession session)
Called when an IoSession is explicitly closed. |
Field Detail |
---|
static final IoSessionRecycler NOOP
Method Detail |
---|
void put(IoSession session)
IoSession
.
session
- the new IoSession
.IoSession recycle(SocketAddress localAddress, SocketAddress remoteAddress)
IoSession
.
localAddress
- the local socket address of the IoSession
the
transport wants to recycle.remoteAddress
- the remote socket address of the IoSession
the
transport wants to recycle.
IoSession
, or null if one cannot be found.void remove(IoSession session)
IoSession
is explicitly closed.
session
- the new IoSession
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |