Interface CachePolicy

    • Method Detail

      • statsEnabled

        @Default
        default boolean statsEnabled()
        Whether this cache has it statics enabled. This may cause it to have a bit more runtime overhead than it would have if it does not. CacheStats are obtained via CacheManager.getStats()
      • maxEntries

        @Default
        default long maxEntries()
        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 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.