|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cache.AbstractBaseCache
org.castor.cache.distributed.AbstractDistributedCache
public abstract class AbstractDistributedCache
Base implementation of all distributed cache types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from interface org.castor.cache.Cache |
|---|
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE |
| Constructor Summary | |
|---|---|
AbstractDistributedCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Object,Object>> |
entrySet()
|
Object |
get(Object key)
|
protected Map<Object,Object> |
getCache()
Get the cache instance. |
boolean |
isEmpty()
|
Set<Object> |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map<? extends Object,? extends Object> map)
|
Object |
remove(Object key)
|
protected void |
setCache(Map<Object,Object> cache)
Set the cache instance. |
int |
size()
|
Collection<Object> |
values()
|
| Methods inherited from class org.castor.cache.AbstractBaseCache |
|---|
close, expire, expireAll, getName, initialize, invokeMethod, invokeStaticMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.cache.Cache |
|---|
getType |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AbstractDistributedCache()
| Method Detail |
|---|
protected final Map<Object,Object> getCache()
protected final void setCache(Map<Object,Object> cache)
cache - The cache instance.public final int size()
public final boolean isEmpty()
public final boolean containsKey(Object key)
public final boolean containsValue(Object value)
public final Object get(Object key)
public final Object put(Object key,
Object value)
public final Object remove(Object key)
public final void putAll(Map<? extends Object,? extends Object> map)
public final void clear()
public final Set<Object> keySet()
public final Collection<Object> values()
public final Set<Map.Entry<Object,Object>> entrySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||