Package org.apache.mina.core.session
Interface IoSessionRecycler
-
- All Known Implementing Classes:
ExpiringSessionRecycler
public interface IoSessionRecycler
A connectionless transport can recycle existing sessions by assigning anIoSessionRecycler
to anIoService
.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static IoSessionRecycler
NOOP
A dummy recycler that doesn't recycle any sessions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
put(IoSession session)
Called when the underlying transport creates or writes a newIoSession
.IoSession
recycle(SocketAddress remoteAddress)
Attempts to retrieve a recycledIoSession
.void
remove(IoSession session)
Called when anIoSession
is 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.
-
-