public final class ArcPolicy extends Object implements Policy
This implementation is based on the pseudo code provided by the authors in their paper Outperforming LRU with an Adaptive Replacement Cache Algorithm and is further described in their paper, ARC: A Self-Tuning, Low Overhead Replacement Cache.
This algorithm is patented by IBM (6996676, 7096321, 7058766, 8612689) and Sun (7469320), making its use in applications ambiguous due to Sun's ZFS providing an implementation under the CDDL.
| Constructor and Description |
|---|
ArcPolicy(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
finished()
Indicates that the recording has completed.
|
static Set<Policy> |
policies(com.typesafe.config.Config config)
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 static Set<Policy> policies(com.typesafe.config.Config config)
public void record(long key)
Policypublic PolicyStats stats()
Policy