| Modifier and Type | Class and Description |
|---|---|
static class |
SamplingPolicy.EvictionPolicy
The replacement policy.
|
static class |
SamplingPolicy.Sample
The algorithms to choose a random sample with.
|
| Constructor and Description |
|---|
SamplingPolicy(Admission admission,
SamplingPolicy.EvictionPolicy policy,
com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
static Set<Policy> |
policies(com.typesafe.config.Config config,
SamplingPolicy.EvictionPolicy policy)
Returns all variations of this policy based on the configuration parameters.
|
void |
record(long key)
Records that the entry was accessed.
|
PolicyStats |
stats()
Returns the cache efficiency statistics.
|
public SamplingPolicy(Admission admission, SamplingPolicy.EvictionPolicy policy, com.typesafe.config.Config config)
public static Set<Policy> policies(com.typesafe.config.Config config, SamplingPolicy.EvictionPolicy policy)
public PolicyStats stats()
Policy