Interface IoSessionRecycler
- All Known Implementing Classes:
ExpiringSessionRecycler
public interface IoSessionRecycler
A connectionless transport can recycle existing sessions by assigning an
IoSessionRecycler to an IoService.-
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 remoteAddress, int port) 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
-
put
-
recycle
Attempts to retrieve a recycledIoSession. -
remove
-