Interface Policy
-
- All Known Subinterfaces:
Policy.KeyOnlyPolicy
- All Known Implementing Classes:
ArcPolicy,Cache2kPolicy,CaffeinePolicy,CampPolicy,CarPolicy,CartPolicy,ClairvoyantPolicy,ClockProPlusPolicy,ClockProPolicy,ClockProSimplePolicy,CoherencePolicy,DClockPolicy,Ehcache3Policy,ExpiringMapPolicy,FeedbackTinyLfuPolicy,FeedbackWindowTinyLfuPolicy,FrdPolicy,FrequentlyUsedPolicy,FullySegmentedWindowTinyLfuPolicy,GdsfPolicy,GDWheelPolicy,GuavaPolicy,HazelcastPolicy,HillClimberFrdPolicy,HillClimberWindowTinyLfuPolicy,IndicatorFrdPolicy,LinkedPolicy,LirsPolicy,LruWindowTinyLfuPolicy,MultiQueuePolicy,OhcPolicy,RandomWindowTinyLfuPolicy,S4LruPolicy,S4WindowTinyLfuPolicy,SampledPolicy,SegmentedLruPolicy,TCachePolicy,TinyCachePolicy,TinyCacheWithGhostCachePolicy,TuQueuePolicy,TwoQueuePolicy,UnboundedPolicy,WindowTinyCachePolicy,WindowTinyLfuPolicy
public interface PolicyA cache that implements a page replacement policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPolicy.CharacteristicThe additional features supported.static interfacePolicy.KeyOnlyPolicyA policy that does not exploit external event metadata.static interfacePolicy.PolicySpecAn optional annotation to declare additional capabilities.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidfinished()Indicates that the recording has completed.default Stringname()The policy's name.voidrecord(AccessEvent event)Records that the entry was accessed.PolicyStatsstats()Returns the cache efficiency statistics.
-
-
-
Method Detail
-
record
void record(AccessEvent event)
Records that the entry was accessed.
-
finished
default void finished()
Indicates that the recording has completed.
-
stats
PolicyStats stats()
Returns the cache efficiency statistics.
-
name
default String name()
The policy's name.
-
-