public class FifoPolicy extends AbstractPolicy
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this policy as a string literal
|
Constructor and Description |
---|
FifoPolicy() |
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, selectedBasedOnPolicy
public 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-2013 Terracotta, Inc.. All Rights Reserved.