Record Class NeighbourSet
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.core.membership.events.NeighbourSet
- Record Components:
neighbours- the current set of active neighbour nodes
- All Implemented Interfaces:
BabelEvent, ProtocolEvent
ProtocolEvent carrying a snapshot of the current neighbour set, delivered
to a MembershipConsumerBabelProtocol in response to an
AskNeighbourSet request.
The provider populates and dispatches this event; the
MembershipConsumerExtension delivers it by calling
MembershipConsumerBabelProtocol.setNeighbours(Set).
-
Constructor Summary
ConstructorsConstructorDescriptionNeighbourSet(Set<BabelNode> neighbours) Creates an instance of aNeighbourSetrecord 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.Returns the value of theneighboursrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NeighbourSet
Creates an instance of aNeighbourSetrecord class.- Parameters:
neighbours- the value for theneighboursrecord component
-
-
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). -
neighbours
Returns the value of theneighboursrecord component.- Returns:
- the value of the
neighboursrecord component
-