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:
ConnectionUpEvent— an outgoing connection has been successfully established.ConnectionDownEvent— a previously open connection has been closed.ConnectionFailedEvent— a connection attempt failed before it could be established.
Network events are delivered to protocols via the
BabelProtocol.connectionUp(BabelNode),
BabelProtocol.connectionDown(BabelNode, Throwable), and
BabelProtocol.connectionFailed(BabelNode, Throwable) callback methods.
-
Method Summary
-
Method Details
-
node
-