Record Class ODiscoverAction.OEstablishAction
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.topology.ODiscoverAction.OEstablishAction
- All Implemented Interfaces:
ODiscoverAction
- Enclosing interface:
- ODiscoverAction
public static record ODiscoverAction.OEstablishAction(OGroupId groupId, Set<ONodeId> candidates)
extends Record
implements ODiscoverAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.distributed.context.topology.ODiscoverAction
ODiscoverAction.OAddNodeAction, ODiscoverAction.OEstablishAction, ODiscoverAction.ONoneAction -
Constructor Summary
ConstructorsConstructorDescriptionOEstablishAction(OGroupId groupId, Set<ONodeId> candidates) Creates an instance of aOEstablishActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidatesrecord component.final booleanIndicates whether some other object is "equal to" this one.voidexecute(OrientDBDistributed context) groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OEstablishAction
Creates an instance of aOEstablishActionrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentcandidates- the value for thecandidatesrecord component
-
-
Method Details
-
execute
- Specified by:
executein interfaceODiscoverAction
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
candidates
Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-