public class MultiCache extends java.lang.Object implements ObjectCache
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_TYPE_PROPERTY
The property holding the type of the underlying cache to use.
|
Constructor and Description |
---|
MultiCache(ObjectCache cache,
MultiCacheManager manager) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clear(java.io.Serializable key)
In this implementation, the clear is multicast to all caches.
|
void |
clearAll()
Clears the entire cache.
|
void |
doClear(java.io.Serializable key)
Here the clear is actually done.
|
void |
doClearAll() |
java.lang.Object |
get(java.io.Serializable key)
Gets an object from the cache by key, or returns null if that object is
not cached.
|
java.lang.String |
getType()
Gets the common name of the type of objects to cache.
|
void |
put(java.io.Serializable key,
java.lang.Object object)
Adds an object to the cache.
|
void |
setType(java.lang.String type)
Sets the common name of the type of objects to cache.
|
public static final java.lang.String CACHE_TYPE_PROPERTY
public MultiCache(ObjectCache cache, MultiCacheManager manager)
public java.lang.String getType()
ObjectCache
getType
in interface ObjectCache
public void setType(java.lang.String type)
ObjectCache
setType
in interface ObjectCache
public void put(java.io.Serializable key, java.lang.Object object)
ObjectCache
put
in interface ObjectCache
public java.lang.Object get(java.io.Serializable key)
ObjectCache
get
in interface ObjectCache
public java.lang.Object clear(java.io.Serializable key)
clear
in interface ObjectCache
public void doClear(java.io.Serializable key)
public void clearAll()
ObjectCache
clearAll
in interface ObjectCache
public void doClearAll()