Record Class ONodeStateStore
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.ONodeStateStore
public record ONodeStateStore(Optional<OTransactionSequenceStatus> sequence, Optional<ONetworkTopologyStore> network, Optional<ODatabasesTopologyStore> databases)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionONodeStateStore(Optional<OTransactionSequenceStatus> sequence, Optional<ONetworkTopologyStore> network, Optional<ODatabasesTopologyStore> databases) Creates an instance of aONodeStateStorerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.network()Returns the value of thenetworkrecord component.sequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ONodeStateStore
public ONodeStateStore(Optional<OTransactionSequenceStatus> sequence, Optional<ONetworkTopologyStore> network, Optional<ODatabasesTopologyStore> databases) Creates an instance of aONodeStateStorerecord class.- Parameters:
sequence- the value for thesequencerecord componentnetwork- the value for thenetworkrecord componentdatabases- the value for thedatabasesrecord component
-
-
Method Details
-
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). -
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
network
Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
databases
Returns the value of thedatabasesrecord component.- Returns:
- the value of the
databasesrecord component
-