Class MemoryConfiguration

All Implemented Interfaces:
Matchable<MemoryConfiguration>, Updatable<MemoryConfiguration>

public class MemoryConfiguration extends ConfigurationElement<MemoryConfiguration>
Controls the memory storage configuration for the cache.
Author:
William Burns
  • Field Details

  • Method Details

    • isOffHeap

      public boolean isOffHeap()
      Returns:
      true if the storage is off-heap
    • maxSizeBytes

      public long maxSizeBytes()
      Returns:
      The max size in bytes or -1 if not configured.
    • maxSize

      public String maxSize()
    • maxSize

      public void maxSize(String maxSize)
    • maxSize

      public void maxSize(long maxSize)
    • maxCount

      public long maxCount()
      Returns:
      the max number of entries in memory or -1 if not configured.
    • maxCount

      public void maxCount(long maxCount)
    • storage

      public StorageType storage()
      Storage type to use for the data container
      Returns:
      The memory StorageType.
    • whenFull

      public EvictionStrategy whenFull()
      The configured eviction strategy
      Returns:
      The configured EvictionStrategy.
    • isEvictionEnabled

      public boolean isEvictionEnabled()
      Returns whether remove eviction is in use