Class TCachePolicy
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy
-
- All Implemented Interfaces:
Policy
,Policy.KeyOnlyPolicy
public final class TCachePolicy extends Object implements Policy.KeyOnlyPolicy
TCache implementation. This library uses high/low watermarks and does not honor a strict bound.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.policy.Policy
Policy.Characteristic, Policy.KeyOnlyPolicy, Policy.PolicySpec
-
-
Constructor Summary
Constructors Constructor Description TCachePolicy(com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy.TCacheSettings settings, com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy.Eviction policy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished()
Indicates that the recording has completed.static Set<Policy>
policies(Config config)
Returns all variations of this policy based on the configuration parameters.void
record(long key)
PolicyStats
stats()
Returns the cache efficiency statistics.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.policy.Policy.KeyOnlyPolicy
record
-
-
-
-
Method Detail
-
policies
public static Set<Policy> policies(Config config)
Returns all variations of this policy based on the configuration parameters.
-
record
public void record(long key)
- Specified by:
record
in interfacePolicy.KeyOnlyPolicy
-
stats
public PolicyStats stats()
Description copied from interface:Policy
Returns the cache efficiency statistics.
-
-