public final class DClockPolicy extends Object implements Policy.KeyOnlyPolicy
The algorithm is explained by the authors in linux/mm/workingset.c. The target size of the active and inactive list is calculated in linux/mm/vmscan.c.
Policy.Characteristic, Policy.KeyOnlyPolicy, Policy.PolicySpec| Constructor and Description |
|---|
DClockPolicy(com.github.benmanes.caffeine.cache.simulator.policy.irr.DClockPolicy.DClockSettings settings,
double percentActive) |
| Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecordpublic DClockPolicy(com.github.benmanes.caffeine.cache.simulator.policy.irr.DClockPolicy.DClockSettings settings, double percentActive)
public static Set<Policy> policies(Config config)
public void record(long key)
record in interface Policy.KeyOnlyPolicypublic PolicyStats stats()
Policy