Record Class WalCompactor.CompactionStats
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.WalCompactor.CompactionStats
- Enclosing class:
WalCompactor
public static record WalCompactor.CompactionStats(long totalCompactions, long totalSnapshotsCreated, long totalEntriesTruncated, long totalBytesFreed, long lastCompactionTimeMs)
extends Record
Compaction statistics record.
-
Constructor Summary
ConstructorsConstructorDescriptionCompactionStats(long totalCompactions, long totalSnapshotsCreated, long totalEntriesTruncated, long totalBytesFreed, long lastCompactionTimeMs) Creates an instance of aCompactionStatsrecord class. -
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.longReturns the value of thelastCompactionTimeMsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesFreedrecord component.longReturns the value of thetotalCompactionsrecord component.longReturns the value of thetotalEntriesTruncatedrecord component.longReturns the value of thetotalSnapshotsCreatedrecord component.
-
Constructor Details
-
CompactionStats
public CompactionStats(long totalCompactions, long totalSnapshotsCreated, long totalEntriesTruncated, long totalBytesFreed, long lastCompactionTimeMs) Creates an instance of aCompactionStatsrecord class.- Parameters:
totalCompactions- the value for thetotalCompactionsrecord componenttotalSnapshotsCreated- the value for thetotalSnapshotsCreatedrecord componenttotalEntriesTruncated- the value for thetotalEntriesTruncatedrecord componenttotalBytesFreed- the value for thetotalBytesFreedrecord componentlastCompactionTimeMs- the value for thelastCompactionTimeMsrecord 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. -
totalCompactions
public long totalCompactions()Returns the value of thetotalCompactionsrecord component.- Returns:
- the value of the
totalCompactionsrecord component
-
totalSnapshotsCreated
public long totalSnapshotsCreated()Returns the value of thetotalSnapshotsCreatedrecord component.- Returns:
- the value of the
totalSnapshotsCreatedrecord component
-
totalEntriesTruncated
public long totalEntriesTruncated()Returns the value of thetotalEntriesTruncatedrecord component.- Returns:
- the value of the
totalEntriesTruncatedrecord component
-
totalBytesFreed
public long totalBytesFreed()Returns the value of thetotalBytesFreedrecord component.- Returns:
- the value of the
totalBytesFreedrecord component
-
lastCompactionTimeMs
public long lastCompactionTimeMs()Returns the value of thelastCompactionTimeMsrecord component.- Returns:
- the value of the
lastCompactionTimeMsrecord component
-