Record Class AskNeighbourSet
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.core.membership.events.AskNeighbourSet
- Record Components:
askingProtocol- the class of the consumer protocol requesting the neighbour set, so the provider can route the reply back
- All Implemented Interfaces:
BabelEvent, ProtocolEvent
public record AskNeighbourSet(Class<? extends MembershipConsumerBabelProtocol> askingProtocol)
extends Record
implements ProtocolEvent
ProtocolEvent emitted by a
MembershipConsumerBabelProtocol when it wants to retrieve the
current neighbour set from the membership provider.
The event is dispatched via
MembershipConsumerBabelProtocol.askNeighbourSet(Babel) and handled by the
MembershipProviderExtension, which calls
MembershipProviderBabelProtocol.getNeighbours(Class).
-
Constructor Summary
ConstructorsConstructorDescriptionAskNeighbourSet(Class<? extends MembershipConsumerBabelProtocol> askingProtocol) Creates an instance of aAskNeighbourSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends MembershipConsumerBabelProtocol> Returns the value of theaskingProtocolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AskNeighbourSet
Creates an instance of aAskNeighbourSetrecord class.- Parameters:
askingProtocol- the value for theaskingProtocolrecord 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). -
askingProtocol
Returns the value of theaskingProtocolrecord component.- Returns:
- the value of the
askingProtocolrecord component
-