Package org.apache.mina.common
Interface IoSessionRecycler
- All Known Implementing Classes:
ExpiringSessionRecycler
public interface IoSessionRecycler
A connectionless transport can recycle existing sessions by assigning an
IoSessionRecyler to its
IoServiceConfig.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IoSessionRecyclerA dummy recycler that doesn't recycle any sessions. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the underlying transport creates or writes a newIoSession.recycle(SocketAddress localAddress, SocketAddress remoteAddress) Attempts to retrieve a recycledIoSession.voidCalled when anIoSessionis explicitly closed.
-
Field Details
-
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.
-
-
Method Details