Class ClairvoyantPolicy
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.opt.ClairvoyantPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.policy.Policy
Policy.Characteristic, Policy.KeyOnlyPolicy, Policy.PolicySpec
-
-
Constructor Summary
Constructors Constructor Description ClairvoyantPolicy(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Indicates that the recording has completed.voidrecord(AccessEvent event)Records that the entry was accessed.PolicyStatsstats()Returns the cache efficiency statistics.
-
-
-
Constructor Detail
-
ClairvoyantPolicy
public ClairvoyantPolicy(Config config)
-
-
Method Detail
-
record
public void record(AccessEvent event)
Description copied from interface:PolicyRecords that the entry was accessed.
-
stats
public PolicyStats stats()
Description copied from interface:PolicyReturns the cache efficiency statistics.
-
-