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 voidclear()final booleancontainsKey(Object key) final booleancontainsValue(Object value) entrySet()final ObjectgetCache()Get the cache instance.final booleanisEmpty()keySet()final Objectfinal voidfinal Objectprotected final voidSet the cache instance.final intsize()final Collection<Object> values()Methods inherited from class org.castor.cache.AbstractBaseCache
close, expire, expireAll, getName, initialize, invokeMethod, invokeStaticMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-