Package org.castor.cache.distributed
Class AbstractDistributedCache
java.lang.Object
org.castor.cache.AbstractBaseCache
org.castor.cache.distributed.AbstractDistributedCache
- Direct Known Subclasses:
CoherenceCache
,FKCache
,GigaspacesCache
,JCache
Base implementation of all distributed cache types.
- Since:
- 1.0
- Version:
- $Revision: 8102 $ $Date: 2006-05-05 13:53:54 -0600 (Fri, 05 May 2006) $
- Author:
- Werner Guttmann, Ralf Joachim
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.castor.cache.Cache
DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
clear()
final boolean
containsKey
(Object key) final boolean
containsValue
(Object value) entrySet()
final Object
getCache()
Get the cache instance.final boolean
isEmpty()
keySet()
final Object
final void
final Object
protected final void
Set the cache instance.final int
size()
final 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 java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
AbstractDistributedCache
public AbstractDistributedCache()
-
-
Method Details
-
getCache
Get the cache instance.- Returns:
- The cache instance.
-
setCache
Set the cache instance.- Parameters:
cache
- The cache instance.
-
size
public final int size() -
isEmpty
public final boolean isEmpty() -
containsKey
-
containsValue
-
get
-
put
-
remove
-
putAll
-
clear
public final void clear() -
keySet
-
values
-
entrySet
-