Class CoherencePolicy

  • All Implemented Interfaces:
    Policy

    public final class CoherencePolicy
    extends Object
    implements Policy
    Coherence cache implementation.
    • Constructor Detail

      • CoherencePolicy

        public CoherencePolicy​(com.github.benmanes.caffeine.cache.simulator.policy.product.CoherencePolicy.CoherenceSettings settings,
                               com.github.benmanes.caffeine.cache.simulator.policy.product.CoherencePolicy.Eviction policy)
    • Method Detail

      • policies

        public static Set<Policy> policies​(Config config)
        Returns all variations of this policy based on the configuration parameters.
      • record

        public void record​(AccessEvent event)
        Description copied from interface: Policy
        Records that the entry was accessed.
        Specified by:
        record in interface Policy
      • stats

        public PolicyStats stats()
        Description copied from interface: Policy
        Returns the cache efficiency statistics.
        Specified by:
        stats in interface Policy