Class NoopCachePolicy

  • All Implemented Interfaces:

    public class NoopCachePolicy
    extends Object
    implements CachePolicy
    No Operation ("NOOP") implementation of CachePolicy.
    • 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