Interface MessageEvent
- All Superinterfaces:
BabelEvent
- All Known Implementing Classes:
MessageInEvent, MessageOutFailedEvent, MessageOutSuccessEvent
public sealed interface MessageEvent
extends BabelEvent
permits MessageInEvent, MessageOutSuccessEvent, MessageOutFailedEvent
Sealed interface representing the outcome of a message send or receive
operation on a
BabelChannel.
The three permitted subtypes mirror the three possible results of sending a
BabelMessage:
MessageInEvent— a message was received from a remote node.MessageOutSuccessEvent— a previously sent message was successfully delivered to the remote node.MessageOutFailedEvent— a previously sent message could not be delivered and the send attempt has failed.
Protocols handle these events by annotating methods with
@UponMessageIn,
@UponMessageOutSuccess, or
@UponMessageOutFailed
respectively.
-
Method Summary
-
Method Details
-
message
-