public abstract class JCS extends Object
| Constructor and Description |
|---|
JCS() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> CacheAccess<K,V> |
defineRegion(String name)
Define a new cache region with the given name.
|
static <K,V> CacheAccess<K,V> |
defineRegion(String name,
ICompositeCacheAttributes cattr)
Define a new cache region with the specified name and attributes.
|
static <K,V> CacheAccess<K,V> |
defineRegion(String name,
ICompositeCacheAttributes cattr,
IElementAttributes attr)
Define a new cache region with the specified name and attributes and return a CacheAccess to
it.
|
static <K,V> GroupCacheAccess<K,V> |
getGroupCacheInstance(String region)
Get a GroupCacheAccess which accesses the provided region.
|
static <K,V> GroupCacheAccess<K,V> |
getGroupCacheInstance(String region,
ICompositeCacheAttributes icca)
Get a GroupCacheAccess which accesses the provided region.
|
static <K,V> CacheAccess<K,V> |
getInstance(String region)
Get a CacheAccess which accesses the provided region.
|
static <K,V> CacheAccess<K,V> |
getInstance(String region,
ICompositeCacheAttributes icca)
Get a CacheAccess which accesses the provided region.
|
static void |
setConfigFilename(String configFilename)
Set the filename that the cache manager will be initialized with.
|
static void |
setConfigProperties(Properties configProps)
Set the properties that the cache manager will be initialized with.
|
public static <K,V> CacheAccess<K,V> defineRegion(String name) throws CacheException
name - Name that will identify the regionCacheExceptionpublic static <K,V> CacheAccess<K,V> defineRegion(String name, ICompositeCacheAttributes cattr) throws CacheException
name - Name that will identify the regioncattr - CompositeCacheAttributes for the regionCacheExceptionpublic static <K,V> CacheAccess<K,V> defineRegion(String name, ICompositeCacheAttributes cattr, IElementAttributes attr) throws CacheException
name - Name that will identify the regioncattr - CompositeCacheAttributes for the regionattr - Attributes for the regionCacheExceptionpublic static void setConfigFilename(String configFilename)
configFilename - public static void setConfigProperties(Properties configProps)
configProps - public static <K,V> CacheAccess<K,V> getInstance(String region) throws CacheException
region - Region that return CacheAccess will provide access toCacheExceptionpublic static <K,V> CacheAccess<K,V> getInstance(String region, ICompositeCacheAttributes icca) throws CacheException
region - Region that return CacheAccess will provide access toicca - CacheAttributes for regionCacheExceptionpublic static <K,V> GroupCacheAccess<K,V> getGroupCacheInstance(String region) throws CacheException
region - Region that return GroupCacheAccess will provide access toCacheExceptionpublic static <K,V> GroupCacheAccess<K,V> getGroupCacheInstance(String region, ICompositeCacheAttributes icca) throws CacheException
region - Region that return GroupCacheAccess will provide access toicca - CacheAttributes for regionCacheExceptionCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.