Class AbstractDistributedCache

java.lang.Object
org.castor.cache.AbstractBaseCache
org.castor.cache.distributed.AbstractDistributedCache
All Implemented Interfaces:
Map<Object,Object>, Cache
Direct Known Subclasses:
CoherenceCache, FKCache, GigaspacesCache, JCache

public abstract class AbstractDistributedCache extends AbstractBaseCache
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
  • Constructor Details

    • AbstractDistributedCache

      public AbstractDistributedCache()
  • Method Details

    • getCache

      protected final Map<Object,Object> getCache()
      Get the cache instance.
      Returns:
      The cache instance.
    • setCache

      protected final void setCache(Map<Object,Object> cache)
      Set the cache instance.
      Parameters:
      cache - The cache instance.
    • size

      public final int size()
    • isEmpty

      public final boolean isEmpty()
    • containsKey

      public final boolean containsKey(Object key)
    • containsValue

      public final boolean containsValue(Object value)
    • get

      public final Object get(Object key)
    • put

      public final Object put(Object key, Object value)
    • remove

      public final Object remove(Object key)
    • putAll

      public final void putAll(Map<? extends Object,? extends Object> map)
    • clear

      public final void clear()
    • keySet

      public final Set<Object> keySet()
    • values

      public final Collection<Object> values()
    • entrySet

      public final Set<Map.Entry<Object,Object>> entrySet()