Class NoopCachePolicy

  • All Implemented Interfaces:
    CachePolicy

    public class NoopCachePolicy
    extends Object
    implements CachePolicy
    No Operation ("NOOP") implementation of CachePolicy.
    Author:
    Michael Vorburger.ch
    • Constructor Detail

      • NoopCachePolicy

        public NoopCachePolicy()
    • Method Detail

      • maxEntries

        public long maxEntries()
        Description copied from interface: CachePolicy
        Specifies the maximum number of entries the cache may contain. When this limit is reached, existing entries are evicted to accomodate new entries.

        The default is CachePolicy.UNLIMITED_ENTRIES.

        Users are encourage to set the maximum entries policy suitable to their actual usage of the cache; either programmatically in code, or by runtime configuration.

        Specified by:
        maxEntries in interface CachePolicy