Record Class ConnectionUpEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.events.ConnectionUpEvent
- Record Components:
node- the remote node that is now reachable
- All Implemented Interfaces:
BabelEvent, NetworkEvent
NetworkEvent delivered to a protocol when an outgoing connection to
node has been successfully established on the protocol's channel.
This event triggers the BabelProtocol#connectionUp callback.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionUpEvent(BabelNode node) Creates an instance of aConnectionUpEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
-
ConnectionUpEvent
-
-
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
-