Interface MessageConnector.IMessageConnection.Listener
- Enclosing interface:
MessageConnector.IMessageConnection
public static interface MessageConnector.IMessageConnection.Listener
Receives connection readiness, complete inbound messages, writability, and closure.
- Since:
- 4.23
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the peer or transport closes the connection.voidready()Called once the transport can send and receive.voidreceived(ByteBuffer data, Runnable releaseAction) Delivers one complete framed message and transfers a lease on its storage.voidwritable()Called when a previously rejected send may be retried.
-
Method Details
-
ready
void ready()Called once the transport can send and receive. -
received
Delivers one complete framed message and transfers a lease on its storage.- Parameters:
data- storage whose current position and limit delimit the complete framereleaseAction- action that returns or releases the storage
-
writable
void writable()Called when a previously rejected send may be retried. -
closed
Called when the peer or transport closes the connection.- Parameters:
cause- the reason for an abnormal closure, ornullfor an orderly closure
-