Package pt.unl.fct.di.novasys.babel2.events
@NullMarked
package pt.unl.fct.di.novasys.babel2.events
Event hierarchy defining network states, message delivery outcomes, protocol notifications, and runtime lifecycle events in Babel 2.
All events implement BabelEvent, which partitions events into:
ProtocolEvent— Base for application-level and timer events.NetworkEvent— Channel connectivity events (ConnectionUpEvent,ConnectionDownEvent,ConnectionFailedEvent).MessageEvent— Message delivery outcomes (MessageInEvent,MessageOutSuccessEvent,MessageOutFailedEvent).StartEvent— Delivered upon protocol initialization when the runtime starts.
-
ClassDescriptionRoot sealed interface for all events processed by the Babel runtime.
NetworkEventdelivered to a protocol when a previously established connection tonodehas been closed.NetworkEventdelivered to a protocol when an outgoing connection attempt tonodefailed before the connection could be established.NetworkEventdelivered to a protocol when an outgoing connection tonodehas been successfully established on the protocol's channel.Sealed interface representing the outcome of a message send or receive operation on aBabelChannel.MessageEventdelivered when aBabelMessagearrives from a remote node.MessageEventdelivered when an attempt to send aBabelMessageto a remote node failed.MessageEventdelivered when a previously sentBabelMessagewas successfully handed off to the remote node.Sealed interface representing connection lifecycle events generated by aBabelChannel.Marker interface for user-defined, application-level events exchanged between protocols.SpecialBabelEventdelivered exactly once to each protocol when the Babel runtime starts (i.e., whenBabel.init()is called).