|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.util.jcache.CacheAccessFactory
public abstract class CacheAccessFactory
A factory for CacheAccess objects and to the Cache Administrative interface.
| Constructor Summary | |
|---|---|
protected |
CacheAccessFactory()
Creates a new CacheAccessFactory object. |
| Method Summary | |
|---|---|
abstract void |
defineRegion(String name)
Deprecated. removed auto-generate-region replacement. |
abstract void |
defineRegion(String name,
Attributes attributes)
Deprecated. removed auto-generate-region replacement. |
abstract Cache |
getCache()
Deprecated. will be removed with no replacement. |
abstract Cache |
getCache(boolean b)
Deprecated. will be removed with no replacement. |
Attributes |
getDefaultAttributes()
Deprecated. removed with no replacement. |
static CacheAccessFactory |
getInstance()
Obtain a new instance of a CacheAccessFactory. |
abstract CacheMap |
getMapAccess()
|
abstract CacheMap |
getMapAccess(String region)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CacheAccessFactory()
| Method Detail |
|---|
public Attributes getDefaultAttributes()
public static CacheAccessFactory getInstance()
IllegalStateException - if the implementation is not
available or cannot be instantiated.
public abstract void defineRegion(String name)
throws ObjectExistsException,
NullObjectNameException,
CacheNotAvailableException
name - the name for the region. Must be globally unique.
ObjectExistsException - if the name already exists in the cache.
NullObjectNameException - if the region is attempted initialized
with null as name.
CacheNotAvailableException - if the cache is not available, either
it is not initialized, or it is unavailable.
public abstract void defineRegion(String name,
Attributes attributes)
throws ObjectExistsException,
NullObjectNameException,
CacheNotAvailableException
name - the name for the region. Must be globally unique.attributes - sets the default attributes for objects in the new
region. If the Attributes is null, default
attributes will be used.
ObjectExistsException - if the name already exists in the cache.
NullObjectNameException - if the region is attempted initialized
with null as name.
CacheNotAvailableException - if the cache is not available, either
it is not initialized, or it is unavailable.
public abstract Cache getCache()
throws CacheException
CacheException - if exceptions occur.
public abstract Cache getCache(boolean b)
throws CacheException
b - a boolean indicating wether to initialize the Cache or not. if
already initialized, this is ignored.
CacheException - if fatal exceptions occur.
public abstract CacheMap getMapAccess()
throws CacheException
CacheException
public abstract CacheMap getMapAccess(String region)
throws CacheException
CacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||