Record Class ConsensusSnapshotMetadata
java.lang.Object
java.lang.Record
org.j7m.middleware.api.consensus.ConsensusSnapshotMetadata
- Record Components:
lastIncludedIndex- last included log indexlastIncludedTerm- last included term
- All Implemented Interfaces:
Serializable
public record ConsensusSnapshotMetadata(LogIndex lastIncludedIndex, ConsensusTerm lastIncludedTerm)
extends Record
implements Serializable
Snapshot metadata. Phase 6.5 exposes this type but the baseline implementation reports snapshots as unsupported.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsensusSnapshotMetadata(LogIndex lastIncludedIndex, ConsensusTerm lastIncludedTerm) Creates metadata. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastIncludedIndexrecord component.Returns the value of thelastIncludedTermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsensusSnapshotMetadata
Creates metadata.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
lastIncludedIndex
Returns the value of thelastIncludedIndexrecord component.- Returns:
- the value of the
lastIncludedIndexrecord component
-
lastIncludedTerm
Returns the value of thelastIncludedTermrecord component.- Returns:
- the value of the
lastIncludedTermrecord component
-