Record Class ODiscoverAction.OAddNodeAction
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.topology.ODiscoverAction.OAddNodeAction
- All Implemented Interfaces:
ODiscoverAction
- Enclosing interface:
- ODiscoverAction
public static record ODiscoverAction.OAddNodeAction(ONodeId node, long version)
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
ConstructorsConstructorDescriptionOAddNodeAction(ONodeId node, long version) Creates an instance of aOAddNodeActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidexecute(OrientDBDistributed context) 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.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
OAddNodeAction
Creates an instance of aOAddNodeActionrecord class.- Parameters:
node- the value for thenoderecord componentversion- the value for theversionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-