Interface Admittor.KeyOnlyAdmittor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.admission.Admittor
Admittor.KeyOnlyAdmittor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanadmit(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.default booleanadmit(AccessEvent candidate, AccessEvent victim)Returns if the candidate should be added to the cache and the page replacement policy's chosen victim should be removed.voidrecord(long key)Records the access to the entry.default voidrecord(AccessEvent event)Records the access to the entry.
-
-
-
Method Detail
-
record
void record(long key)
Description copied from interface:AdmittorRecords the access to the entry.
-
admit
boolean admit(long candidateKey, long victimKey)Description copied from interface:AdmittorReturns if the candidate should be added to the cache and the page replacement policy's chosen victim should be removed.
-
record
default void record(AccessEvent event)
Description copied from interface:AdmittorRecords the access to the entry.
-
admit
default boolean admit(AccessEvent candidate, AccessEvent victim)
Description copied from interface:AdmittorReturns if the candidate should be added to the cache and the page replacement policy's chosen victim should be removed.
-
-