Class AbstractCacheManager

java.lang.Object
com.j_spaces.core.cache.AbstractCacheManager
Direct Known Subclasses:
CacheManager, EvictionCacheManager

public abstract class AbstractCacheManager extends Object
  • Field Details

    • _evictionQuota

      protected int _evictionQuota
      in case of eviction policy we evict unused entries in order to ensure space.
    • m_CacheSize

      protected int m_CacheSize
  • Constructor Details

    • AbstractCacheManager

      public AbstractCacheManager()
  • Method Details

    • evictBatch

      public abstract int evictBatch(int evictionQuota)
      Evict a quota of entries from cache.
      Returns:
      number of actual evicted
    • setEvictionQuota

      public void setEvictionQuota(int evictionQuota)
    • getCachePolicy

      public int getCachePolicy()
    • setCachePolicy

      public void setCachePolicy(int cachePolicy)
    • isResidentEntriesCachePolicy

      public boolean isResidentEntriesCachePolicy()
    • isBlobStoreCachePolicy

      public boolean isBlobStoreCachePolicy()
    • isEvictableFromSpaceCachePolicy

      public boolean isEvictableFromSpaceCachePolicy()
    • isAllInCachePolicy

      public boolean isAllInCachePolicy()
    • isTieredStorageCachePolicy

      public boolean isTieredStorageCachePolicy()
    • isPluggedEvictionPolicy

      public boolean isPluggedEvictionPolicy()
    • getMaxCacheSize

      public int getMaxCacheSize()