Record Class ONetworkTopologyStore
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.ONetworkTopologyStore
-
Constructor Summary
ConstructorsConstructorDescriptionONetworkTopologyStore(OGroupId groupId, OTopologyState state, Set<ONodeId> members, int quorum, OVersion version) Creates an instance of aONetworkTopologyStorerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ONetworkTopologyStoregroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.members()Returns the value of themembersrecord component.intquorum()Returns the value of thequorumrecord component.state()Returns the value of thestaterecord component.voidfinal StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ONetworkTopologyStore
public ONetworkTopologyStore(OGroupId groupId, OTopologyState state, Set<ONodeId> members, int quorum, OVersion version) Creates an instance of aONetworkTopologyStorerecord class.- Parameters:
groupId- the value for thegroupIdrecord componentstate- the value for thestaterecord componentmembers- the value for themembersrecord componentquorum- the value for thequorumrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
fromResult
-
toElement
-
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 '=='. -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-
quorum
public int quorum()Returns the value of thequorumrecord component.- Returns:
- the value of the
quorumrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-