Interface NetworkEvent

All Superinterfaces:
BabelEvent
All Known Implementing Classes:
ConnectionDownEvent, ConnectionFailedEvent, ConnectionUpEvent

public sealed interface NetworkEvent extends BabelEvent permits ConnectionFailedEvent, ConnectionUpEvent, ConnectionDownEvent
Sealed interface representing connection lifecycle events generated by a BabelChannel.

The three permitted subtypes cover all connection state transitions:

Network events are delivered to protocols via the BabelProtocol.connectionUp(BabelNode), BabelProtocol.connectionDown(BabelNode, Throwable), and BabelProtocol.connectionFailed(BabelNode, Throwable) callback methods.

  • Method Summary

    Modifier and Type
    Method
    Description
    The remote node associated with this network event.
  • Method Details

    • node

      BabelNode node()
      The remote node associated with this network event.
      Returns:
      the remote node