Record Class TtlPolicy.PerKeyTtl
java.lang.Object
java.lang.Record
com.loomcache.server.lease.TtlPolicy.PerKeyTtl
- All Implemented Interfaces:
TtlPolicy
- Enclosing interface:
TtlPolicy
Per-key TTL policy: each key has its own individually set TTL.
This is a marker policy indicating that keys will have TTLs set individually rather than using a uniform policy. The default TTL is Duration.ZERO (no default expiration).
- Since:
- 1.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface TtlPolicy
TtlPolicy.AdaptiveTtl, TtlPolicy.Eternal, TtlPolicy.FixedTtl, TtlPolicy.PerKeyTtl, TtlPolicy.SlidingTtl -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PerKeyTtl
public PerKeyTtl()Creates an instance of aPerKeyTtlrecord class.
-
-
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.
-