|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheConfig
This interface is used to provide the cache instance configuration to a cache provider. This
configuration is provided to the CacheProvider
via the
CacheProvider.createCache(CacheConfig)
method.
Nested Class Summary | |
---|---|
static class |
CacheConfig.EvictorAlgorithmType
Eviction algorithm type EvictorAlgorithmType.LRUEvictor is defined as an evictor type that uses a least recently used algorithm to decide which entries to evict when the cache entries map exceeds a maximum number of entries. |
Method Summary | |
---|---|
java.lang.String |
getCacheName()
Returns the name of cache instance. |
CacheConfig.EvictorAlgorithmType |
getEvictorAlgorithmType()
Returns the type of evictor algorithm. |
int |
getHighThresholdCacheSizeInMB()
Returns the high threshold in percentage of JVM heap space that can be occupied by the cache entries. |
int |
getLowThresholdCacheSizeInMB()
Returns the low threshold in percentage of JVM heap space that can be occupied by the cache entries. |
long |
getMaxCacheSize()
Returns the maximum number of cache entries allowed in the memory. |
long |
getMaxCacheSizeInMB()
Returns the maximum space on the JVM heap that can be occupied by the cache entries. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns additional properties configured for the cacheinstance via the WebSphere admin console, wsadmin, the cacheinstances.properties file or the DistributedObjectCacheFactory.getMap(String name, Properties properties) API. |
boolean |
isDistributed()
Indicates if this cache is meant to be distributed across the server instances of the cache provider. |
Method Detail |
---|
java.lang.String getCacheName()
long getMaxCacheSize()
long getMaxCacheSizeInMB()
int getHighThresholdCacheSizeInMB()
int getLowThresholdCacheSizeInMB()
CacheConfig.EvictorAlgorithmType getEvictorAlgorithmType()
CacheConfig.EvictorAlgorithmType
boolean isDistributed()
java.util.Map<java.lang.String,java.lang.String> getProperties()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |