Class UnboundedPolicy

  • All Implemented Interfaces:
    Policy

    public final class UnboundedPolicy
    extends Object
    implements Policy
    A cache that has no maximum size. This demonstrates the upper bound of the hit rate due to compulsory misses (first reference misses), which can only be avoided if the application can intelligently prefetch the data prior to the request.
    • Method Detail

      • stats

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

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