Package com.tnsai.memory.strategy
Record Class TieredMemoryStore.ConsolidationResult
java.lang.Object
java.lang.Record
com.tnsai.memory.strategy.TieredMemoryStore.ConsolidationResult
- Enclosing class:
TieredMemoryStore
public static record TieredMemoryStore.ConsolidationResult(int decayed, int promoted, int evicted, int totalRemaining)
extends Record
Result of a consolidation cycle.
-
Constructor Summary
ConstructorsConstructorDescriptionConsolidationResult(int decayed, int promoted, int evicted, int totalRemaining) Creates an instance of aConsolidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdecayed()Returns the value of thedecayedrecord component.final booleanIndicates whether some other object is "equal to" this one.intevicted()Returns the value of theevictedrecord component.final inthashCode()Returns a hash code value for this object.intpromoted()Returns the value of thepromotedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalRemainingrecord component.
-
Constructor Details
-
ConsolidationResult
public ConsolidationResult(int decayed, int promoted, int evicted, int totalRemaining) Creates an instance of aConsolidationResultrecord class.- Parameters:
decayed- the value for thedecayedrecord componentpromoted- the value for thepromotedrecord componentevicted- the value for theevictedrecord componenttotalRemaining- the value for thetotalRemainingrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
decayed
public int decayed()Returns the value of thedecayedrecord component.- Returns:
- the value of the
decayedrecord component
-
promoted
public int promoted()Returns the value of thepromotedrecord component.- Returns:
- the value of the
promotedrecord component
-
evicted
public int evicted()Returns the value of theevictedrecord component.- Returns:
- the value of the
evictedrecord component
-
totalRemaining
public int totalRemaining()Returns the value of thetotalRemainingrecord component.- Returns:
- the value of the
totalRemainingrecord component
-