public class LfuPolicy extends AbstractPolicy
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this policy as a string literal
|
| Constructor and Description |
|---|
LfuPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(Element element1,
Element element2)
Compares the desirableness for eviction of two elements
Compares hit counts.
|
String |
getName() |
calculateSampleSize, generateRandomSample, selectedBasedOnPolicypublic static final String NAME
public String getName()
public boolean compare(Element element1, Element element2)
element1 - the element to compare againstelement2 - the element to compareCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.