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 regionCacheException
public static <K,V> CacheAccess<K,V> defineRegion(String name, ICompositeCacheAttributes cattr) throws CacheException
name
- Name that will identify the regioncattr
- CompositeCacheAttributes for the regionCacheException
public 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 regionCacheException
public 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 toCacheException
public static <K,V> CacheAccess<K,V> getInstance(String region, ICompositeCacheAttributes icca) throws CacheException
region
- Region that return CacheAccess will provide access toicca
- CacheAttributes for regionCacheException
public static <K,V> GroupCacheAccess<K,V> getGroupCacheInstance(String region) throws CacheException
region
- Region that return GroupCacheAccess will provide access toCacheException
public static <K,V> GroupCacheAccess<K,V> getGroupCacheInstance(String region, ICompositeCacheAttributes icca) throws CacheException
region
- Region that return GroupCacheAccess will provide access toicca
- CacheAttributes for regionCacheException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.