Record Class ConsensusRecoveryReport
java.lang.Object
java.lang.Record
org.j7m.middleware.api.consensus.ConsensusRecoveryReport
- Record Components:
nodeId- recovered nodeterm- recovered termvotedFor- recovered votelogEntries- recovered log entriescommitIndex- recovered commit indexwarnings- safe warnings
- All Implemented Interfaces:
Serializable
public record ConsensusRecoveryReport(ConsensusNodeId nodeId, ConsensusTerm term, ConsensusNodeId votedFor, long logEntries, CommitIndex commitIndex, Map<String,String> warnings)
extends Record
implements Serializable
Durable consensus recovery report.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsensusRecoveryReport(ConsensusNodeId nodeId, ConsensusTerm term, ConsensusNodeId votedFor, long logEntries, CommitIndex commitIndex, Map<String, String> warnings) Creates a recovery report. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommitIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelogEntriesrecord component.nodeId()Returns the value of thenodeIdrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.votedFor()Returns the value of thevotedForrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
ConsensusRecoveryReport
public ConsensusRecoveryReport(ConsensusNodeId nodeId, ConsensusTerm term, ConsensusNodeId votedFor, long logEntries, CommitIndex commitIndex, Map<String, String> warnings) Creates a recovery report.
-
-
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. -
nodeId
-
term
-
votedFor
-
logEntries
public long logEntries()Returns the value of thelogEntriesrecord component.- Returns:
- the value of the
logEntriesrecord component
-
commitIndex
Returns the value of thecommitIndexrecord component.- Returns:
- the value of the
commitIndexrecord component
-
warnings
-