Record Class CacheNode.CpGroupSummary
java.lang.Object
java.lang.Record
com.loomcache.server.CacheNode.CpGroupSummary
- Enclosing class:
CacheNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecommitIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastAppliedrecord component.booleanleader()Returns the value of theleaderrecord component.@Nullable StringleaderId()Returns the value of theleaderIdrecord component.longlogSize()Returns the value of thelogSizerecord component.members()Returns the value of themembersrecord component.nodeId()Returns the value of thenodeIdrecord component.state()Returns the value of thestaterecord component.longterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CpGroupSummary
public CpGroupSummary(String groupName, String nodeId, String state, boolean leader, @Nullable String leaderId, long term, long commitIndex, long lastApplied, long logSize, List<String> members) Creates an instance of aCpGroupSummaryrecord class.- Parameters:
groupName- the value for thegroupNamerecord componentnodeId- the value for thenodeIdrecord componentstate- the value for thestaterecord componentleader- the value for theleaderrecord componentleaderId- the value for theleaderIdrecord componentterm- the value for thetermrecord componentcommitIndex- the value for thecommitIndexrecord componentlastApplied- the value for thelastAppliedrecord componentlogSize- the value for thelogSizerecord componentmembers- the value for themembersrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
leader
public boolean leader()Returns the value of theleaderrecord component.- Returns:
- the value of the
leaderrecord component
-
leaderId
Returns the value of theleaderIdrecord component.- Returns:
- the value of the
leaderIdrecord component
-
term
public long term()Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
commitIndex
public long commitIndex()Returns the value of thecommitIndexrecord component.- Returns:
- the value of the
commitIndexrecord component
-
lastApplied
public long lastApplied()Returns the value of thelastAppliedrecord component.- Returns:
- the value of the
lastAppliedrecord component
-
logSize
public long logSize()Returns the value of thelogSizerecord component.- Returns:
- the value of the
logSizerecord component
-
members
-