public final class HillClimberWindowTinyLfuPolicy extends Object implements Policy.KeyOnlyPolicy
| Modifier and Type | Class and Description |
|---|---|
static class |
HillClimberWindowTinyLfuPolicy.HillClimberWindowTinyLfuSettings |
Policy.Characteristic, Policy.KeyOnlyPolicy, Policy.PolicySpec| Constructor and Description |
|---|
HillClimberWindowTinyLfuPolicy(com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.HillClimberType strategy,
double percentMain,
HillClimberWindowTinyLfuPolicy.HillClimberWindowTinyLfuSettings settings) |
| 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 HillClimberWindowTinyLfuPolicy(com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.HillClimberType strategy, double percentMain, HillClimberWindowTinyLfuPolicy.HillClimberWindowTinyLfuSettings settings)
public static Set<Policy> policies(Config config)
public PolicyStats stats()
Policypublic void record(long key)
record in interface Policy.KeyOnlyPolicy