Record Class SnapshotManager.SnapshotInfo
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.SnapshotManager.SnapshotInfo
- Enclosing class:
SnapshotManager
public static record SnapshotManager.SnapshotInfo(long lastIncludedIndex, long lastIncludedTerm, long timestamp, long checksum, long dataSize)
extends Record
Snapshot metadata without full data payload.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotInfo(long lastIncludedIndex, long lastIncludedTerm, long timestamp, long checksum, long dataSize) Creates an instance of aSnapshotInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongchecksum()Returns the value of thechecksumrecord component.longdataSize()Returns the value of thedataSizerecord 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 thelastIncludedIndexrecord component.longReturns the value of thelastIncludedTermrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnapshotInfo
public SnapshotInfo(long lastIncludedIndex, long lastIncludedTerm, long timestamp, long checksum, long dataSize) Creates an instance of aSnapshotInforecord class.- Parameters:
lastIncludedIndex- the value for thelastIncludedIndexrecord componentlastIncludedTerm- the value for thelastIncludedTermrecord componenttimestamp- the value for thetimestamprecord componentchecksum- the value for thechecksumrecord componentdataSize- the value for thedataSizerecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
lastIncludedIndex
public long lastIncludedIndex()Returns the value of thelastIncludedIndexrecord component.- Returns:
- the value of the
lastIncludedIndexrecord component
-
lastIncludedTerm
public long lastIncludedTerm()Returns the value of thelastIncludedTermrecord component.- Returns:
- the value of the
lastIncludedTermrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
checksum
public long checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
dataSize
public long dataSize()Returns the value of thedataSizerecord component.- Returns:
- the value of the
dataSizerecord component
-