Interface BabelEvent
- All Known Subinterfaces:
MessageEvent, NetworkEvent, ProtocolEvent
- All Known Implementing Classes:
AskNeighbourSet, BabelNodeProbe, BroadcastDeliverEvent, BroadcastRequest, ConnectionDownEvent, ConnectionFailedEvent, ConnectionUpEvent, MessageInEvent, MessageOutFailedEvent, MessageOutSuccessEvent, NeighbourDown, NeighbourSet, NeighbourUp, SignedMessageIn, SignedMessageOutFailed, SignedMessageOutSuccess, StartEvent
Root sealed interface for all events processed by the Babel runtime.
The four permitted subtypes partition the event space:
ProtocolEvent— user-defined events used for intra-protocol and inter-protocol communication (e.g., timers, notifications).NetworkEvent— connection lifecycle events generated by aBabelChannel(ConnectionUpEvent,ConnectionDownEvent,ConnectionFailedEvent).MessageEvent— message send/receive outcome events (MessageInEvent,MessageOutSuccessEvent,MessageOutFailedEvent).StartEvent— delivered once to each protocol when the runtime starts, carrying theBabelinstance and the protocol's assigned channel.