public class DistributedObjectCacheFactory
extends java.lang.Object
DistributedMap
or DistributedNioMap
created using
this class.DistributedMap
,
DistributedNioMap
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,DistributedObjectCache> |
distributedMaps |
static java.lang.String |
KEY_CACHE_SIZE
Property key to specify cache size.
|
static java.lang.String |
KEY_DISABLE_DEPENDENCY_ID
Property key to disble dependency support.
|
static java.lang.String |
KEY_DISABLE_TEMPLATES_SUPPORT
Property key to disble template support.
|
static java.lang.String |
KEY_DISK_CLEANUP_FREQUENCY
Property key to specify the frequency at which the disk cache cleanup daemon
should remove expired entries from the disk cache.
|
static java.lang.String |
KEY_DISK_DELAY_OFFLOAD_DEPID_BUCKETS
Property key to provide a way to limit the buffering of dependency ID information
by specifying an upper bound on the number of dependencies that will be buffered in memory.
|
static java.lang.String |
KEY_DISK_DELAY_OFFLOAD_ENTRIES_LIMIT
Property key to provide a way to limit the buffering of dependency
and template information by specify an upper bound on the number of cache entries any
specific dependency can contain for buffering in memory.
|
static java.lang.String |
KEY_DISK_DELAY_OFFLOAD_TEMPLATE_BUCKETS
Property key to provide a way to limit the buffering of template information
by specifying an upper bound on the number of templates that will be buffered in memory.
|
static java.lang.String |
KEY_DISK_OFFLOAD_LOCATION
Property key to specify the disk offload location.
|
static java.lang.String |
KEY_DISKCACHE_ENTRY_SIZE_MB
Property key to specify the limit of disk cache entry size in MB.
|
static java.lang.String |
KEY_DISKCACHE_EVICTION_POLICY
Property key to specify the disk cache eviction policy.
|
static java.lang.String |
KEY_DISKCACHE_HIGH_THRESHOLD
Property key to specify the high threshold in percentage.
|
static java.lang.String |
KEY_DISKCACHE_LOW_THRESHOLD
Property key to specify the low threshold in percentage.
|
static java.lang.String |
KEY_DISKCACHE_PERFORMANCE_LEVEL
Property key to specify the disk cache performance level.
|
static java.lang.String |
KEY_DISKCACHE_SIZE
Property key to specify the limit of disk cache size in entries.
|
static java.lang.String |
KEY_DISKCACHE_SIZE_GB
Property key to specify the limit of disk cache size in GB.
|
static java.lang.String |
KEY_ENABLE_CACHE_REPLICATION
Property key to enable cache replication.
|
static java.lang.String |
KEY_ENABLE_DISK_OFFLOAD
Property key to enable disk offload support.
|
static java.lang.String |
KEY_ENABLE_NIO_SUPPORT
Property key to enable nio support.
|
static java.lang.String |
KEY_FLUSH_TO_DISK_ON_STOP
Property key to enable flushing cache contents
to disk when the server is stopped.
|
static java.lang.String |
KEY_LRU_TO_DISK_TRIGGER_PERCENT
Property key to specify the limit of percentage of the memory cache size used as a overflow buffer
when disk offload is enabled.
|
static java.lang.String |
KEY_MEMORY_CACHE_SIZE_HIGH_THRESHOLD
Property key to specify the memory cache size high threshold in percentage.
|
static java.lang.String |
KEY_MEMORY_CACHE_SIZE_IN_MB
Property key to specify a value for the maximum memory cache size in megabytes (MB).
|
static java.lang.String |
KEY_MEMORY_CACHE_SIZE_LOW_THRESHOLD
Property key to specify the memory cache low threshold in percentage.
|
static java.lang.String |
KEY_REPLICATION_DOMAIN
Property key to specify the replication domain.
|
static java.lang.String |
KEY_USE_LISTENER_CONTEXT
Property key to enable listener context on callbacks.
|
static java.lang.String |
VALUE_FALSE
Property value for false.
|
static java.lang.String |
VALUE_TRUE
Property value for true.
|
Modifier and Type | Method and Description |
---|---|
static DistributedObjectCache |
createDistributedObjectCache(java.lang.String name,
java.util.Properties properties) |
static DistributedObjectCache |
getMap(java.lang.String name)
Returns the DistributedMap
instance specified by the given id.
|
static DistributedObjectCache |
getMap(java.lang.String name,
java.util.Properties properties)
Returns the DistributedMap or DistributedNioMap
instance specified by the given id, using the
the parameters specified in properties.
|
static DistributedObjectCache |
removeMap(java.lang.String name) |
static void |
setCacheService(com.ibm.ws.cache.CacheService cacheService) |
static void |
unsetCacheService(com.ibm.ws.cache.CacheServiceImpl cacheServiceImpl) |
public static final java.lang.String KEY_CACHE_SIZE
public static final java.lang.String KEY_DISABLE_DEPENDENCY_ID
public static final java.lang.String KEY_DISABLE_TEMPLATES_SUPPORT
public static final java.lang.String KEY_ENABLE_DISK_OFFLOAD
public static final java.lang.String KEY_ENABLE_NIO_SUPPORT
DistributedNioMap
,
Constant Field Valuespublic static final java.lang.String KEY_DISK_OFFLOAD_LOCATION
public static final java.lang.String KEY_USE_LISTENER_CONTEXT
public static final java.lang.String KEY_FLUSH_TO_DISK_ON_STOP
public static final java.lang.String KEY_ENABLE_CACHE_REPLICATION
public static final java.lang.String KEY_REPLICATION_DOMAIN
public static final java.lang.String KEY_DISKCACHE_PERFORMANCE_LEVEL
public static final java.lang.String KEY_DISK_CLEANUP_FREQUENCY
public static final java.lang.String KEY_DISK_DELAY_OFFLOAD_ENTRIES_LIMIT
public static final java.lang.String KEY_DISK_DELAY_OFFLOAD_DEPID_BUCKETS
public static final java.lang.String KEY_DISK_DELAY_OFFLOAD_TEMPLATE_BUCKETS
public static final java.lang.String KEY_DISKCACHE_EVICTION_POLICY
public static final java.lang.String KEY_DISKCACHE_HIGH_THRESHOLD
public static final java.lang.String KEY_DISKCACHE_LOW_THRESHOLD
public static final java.lang.String KEY_DISKCACHE_SIZE
public static final java.lang.String KEY_DISKCACHE_SIZE_GB
public static final java.lang.String KEY_DISKCACHE_ENTRY_SIZE_MB
public static final java.lang.String KEY_LRU_TO_DISK_TRIGGER_PERCENT
public static final java.lang.String KEY_MEMORY_CACHE_SIZE_IN_MB
public static final java.lang.String KEY_MEMORY_CACHE_SIZE_HIGH_THRESHOLD
public static final java.lang.String KEY_MEMORY_CACHE_SIZE_LOW_THRESHOLD
public static final java.lang.String VALUE_TRUE
public static final java.lang.String VALUE_FALSE
public static java.util.Map<java.lang.String,DistributedObjectCache> distributedMaps
public static DistributedObjectCache getMap(java.lang.String name)
name
- instance namegetMap(String, Properties)
public static DistributedObjectCache removeMap(java.lang.String name)
public static DistributedObjectCache getMap(java.lang.String name, java.util.Properties properties)
name
- instance nameproperties
- public static DistributedObjectCache createDistributedObjectCache(java.lang.String name, java.util.Properties properties)
public static void setCacheService(com.ibm.ws.cache.CacheService cacheService)
public static void unsetCacheService(com.ibm.ws.cache.CacheServiceImpl cacheServiceImpl)