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)
Deprecated.
Duplicate of getInstance(String)
|
static <K,V> CacheAccess<K,V> |
defineRegion(String name,
ICompositeCacheAttributes cattr)
Deprecated.
Duplicate of getInstance(String, ICompositeCacheAttributes)
|
static <K,V> CacheAccess<K,V> |
defineRegion(String name,
ICompositeCacheAttributes cattr,
IElementAttributes attr)
Deprecated.
Duplicate of getInstance(String, ICompositeCacheAttributes, IElementAttributes)
|
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> GroupCacheAccess<K,V> |
getGroupCacheInstance(String region,
ICompositeCacheAttributes icca,
IElementAttributes eattr)
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 <K,V> CacheAccess<K,V> |
getInstance(String region,
ICompositeCacheAttributes icca,
IElementAttributes eattr)
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.
|
static void |
shutdown()
Shut down the cache manager and set the instance to null
|
public JCS()
@Deprecated public static <K,V> CacheAccess<K,V> defineRegion(String name) throws CacheException
name
- Name that will identify the regionCacheException
@Deprecated 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
@Deprecated 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 void shutdown()
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> CacheAccess<K,V> getInstance(String region, ICompositeCacheAttributes icca, IElementAttributes eattr) throws CacheException
region
- Region that return CacheAccess will provide access toicca
- CacheAttributes for regioneattr
- ElementAttributes for the 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
public static <K,V> GroupCacheAccess<K,V> getGroupCacheInstance(String region, ICompositeCacheAttributes icca, IElementAttributes eattr) throws CacheException
region
- Region that return CacheAccess will provide access toicca
- CacheAttributes for regioneattr
- ElementAttributes for the regionCacheException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.