Package org.apache.mina.core.session
Interface IoSessionRecycler
-
- All Known Implementing Classes:
ExpiringSessionRecycler
public interface IoSessionRecyclerA connectionless transport can recycle existing sessions by assigning anIoSessionRecyclerto anIoService.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static IoSessionRecyclerNOOPA dummy recycler that doesn't recycle any sessions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidput(IoSession session)Called when the underlying transport creates or writes a newIoSession.IoSessionrecycle(SocketAddress remoteAddress)Attempts to retrieve a recycledIoSession.voidremove(IoSession session)Called when anIoSessionis explicitly closed.
-
-
-
Field Detail
-
NOOP
static final IoSessionRecycler NOOP
A dummy recycler that doesn't recycle any sessions. Using this recycler will make all session lifecycle events to be fired for every I/O for all connectionless sessions.
-
-