Record Class TieredEvictionManager.EvictionResult
java.lang.Object
java.lang.Record
com.loomcache.server.cache.TieredEvictionManager.EvictionResult
- Enclosing class:
TieredEvictionManager
public static record TieredEvictionManager.EvictionResult(int entriesEvicted, long bytesFreed, long durationMs, int tierReached)
extends Record
Result of eviction operation.
-
Constructor Summary
ConstructorsConstructorDescriptionEvictionResult(int entriesEvicted, long bytesFreed, long durationMs, int tierReached) Creates an instance of aEvictionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesFreedrecord component.longReturns the value of thedurationMsrecord component.intReturns the value of theentriesEvictedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thetierReachedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvictionResult
public EvictionResult(int entriesEvicted, long bytesFreed, long durationMs, int tierReached) Creates an instance of aEvictionResultrecord class.- Parameters:
entriesEvicted- the value for theentriesEvictedrecord componentbytesFreed- the value for thebytesFreedrecord componentdurationMs- the value for thedurationMsrecord componenttierReached- the value for thetierReachedrecord 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. -
entriesEvicted
public int entriesEvicted()Returns the value of theentriesEvictedrecord component.- Returns:
- the value of the
entriesEvictedrecord component
-
bytesFreed
public long bytesFreed()Returns the value of thebytesFreedrecord component.- Returns:
- the value of the
bytesFreedrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
tierReached
public int tierReached()Returns the value of thetierReachedrecord component.- Returns:
- the value of the
tierReachedrecord component
-