public interface Admittor
| Modifier and Type | Method and Description |
|---|---|
boolean |
admit(long candidateKey,
long victimKey)
Returns if the candidate should be added to the cache and the page replacement policy's chosen
victim should be removed.
|
static Admittor |
always()
Returns an admittor that admits every candidate.
|
void |
record(long key)
Records the access to the entry.
|
void record(long key)
boolean admit(long candidateKey,
long victimKey)
candidateKey - the key to the newly added entryvictimKey - the key to the entry the policy recommends removingstatic Admittor always()