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 IoSessionRecycler
A dummy recycler that doesn't recycle any sessions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the underlying transport creates or writes a newIoSession
.recycle
(SocketAddress localAddress, SocketAddress remoteAddress) Attempts to retrieve a recycledIoSession
.void
Called when anIoSession
is 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