org.castor.cache.distributed

Class AbstractDistributedCache

Implemented Interfaces:
Cache, Map
Known Direct Subclasses:
CoherenceCache, FKCache, GigaspacesCache, JCache

public abstract class AbstractDistributedCache
extends AbstractBaseCache

Base implementation of all distributed cache types.
Version:
$Revision: 6907 $ $Date: 2006-05-05 13:53:54 -0600 (Fri, 05 May 2006) $
Authors:
Werner Guttmann
Ralf Joachim
Since:
1.0

Fields inherited from interface org.castor.cache.Cache

DEFAULT_DEBUG, DEFAULT_NAME, DEFAULT_TYPE, PARAM_DEBUG, PARAM_NAME, PARAM_TYPE

Method Summary

void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set
entrySet()
Object
get(Object key)
protected Map
getCache()
Get the cache instance.
boolean
isEmpty()
Set
keySet()
Object
put(Object key, Object value)
void
putAll(Map map)
Object
remove(Object key)
protected void
setCache(Map cache)
Set the cache instance.
int
size()
Collection
values()

Methods inherited from class org.castor.cache.AbstractBaseCache

close, expire, expireAll, getName, initialize, invokeMethod, invokeStaticMethod

Method Details

clear

public final void clear()
See Also:
java.util.Map.clear()

containsKey

public final boolean containsKey(Object key)
See Also:
java.util.Map.containsKey(java.lang.Object)

containsValue

public final boolean containsValue(Object value)
See Also:
java.util.Map.containsValue(java.lang.Object)

entrySet

public final Set entrySet()
See Also:
java.util.Map.entrySet()

get

public final Object get(Object key)
See Also:
java.util.Map.get(java.lang.Object)

getCache

protected final Map getCache()
Get the cache instance.
Returns:
The cache instance.

isEmpty

public final boolean isEmpty()
See Also:
java.util.Map.isEmpty()

keySet

public final Set keySet()
See Also:
java.util.Map.keySet()

put

public final Object put(Object key,
                        Object value)
See Also:
java.util.Map.put(java.lang.Object, java.lang.Object)

putAll

public final void putAll(Map map)
See Also:
java.util.Map.putAll(java.util.Map)

remove

public final Object remove(Object key)
See Also:
java.util.Map.remove(java.lang.Object)

setCache

protected final void setCache(Map cache)
Set the cache instance.
Parameters:
cache - The cache instance.

size

public final int size()
See Also:
java.util.Map.size()

values

public final Collection values()
See Also:
java.util.Map.values()

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com