Package com.j_spaces.core.cache
Class AbstractCacheManager
java.lang.Object
com.j_spaces.core.cache.AbstractCacheManager
- Direct Known Subclasses:
CacheManager,EvictionCacheManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intin case of eviction policy we evict unused entries in order to ensure space.protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intevictBatch(int evictionQuota) Evict a quota of entries from cache.intintbooleanbooleanbooleanbooleanbooleanbooleanvoidsetCachePolicy(int cachePolicy) voidsetEvictionQuota(int evictionQuota)
-
Field Details
-
_evictionQuota
protected int _evictionQuotain 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()
-