Class Cache2kPolicy

  • All Implemented Interfaces:
    Policy

    public final class Cache2kPolicy
    extends Object
    implements Policy
    Cache2k implementation.
    • Method Detail

      • 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
      • finished

        public void finished()
        Description copied from interface: Policy
        Indicates that the recording has completed.
        Specified by:
        finished in interface Policy