Record Class ConnectionFailedEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.events.ConnectionFailedEvent
- Record Components:
node- the remote node that could not be reachedcause- the underlying exception describing the failure
- All Implemented Interfaces:
BabelEvent, NetworkEvent
public record ConnectionFailedEvent(BabelNode node, @Nullable Throwable cause)
extends Record
implements NetworkEvent
NetworkEvent delivered to a protocol when an outgoing connection
attempt to node failed before the connection could be established.
This event triggers the BabelProtocol#connectionFailed callback.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFailedEvent(BabelNode node, @Nullable Throwable cause) Creates an instance of aConnectionFailedEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Throwablecause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionFailedEvent
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
node
Returns the value of thenoderecord component.- Specified by:
nodein interfaceNetworkEvent- Returns:
- the value of the
noderecord component
-
cause
-