net.ontopia.persistence.proxy
Class ClusteredCache
java.lang.Object
net.ontopia.persistence.proxy.ClusteredCache
- All Implemented Interfaces:
- CacheIF
public final class ClusteredCache
- extends Object
- implements CacheIF
INTERNAL: CacheIF implementation that wraps a Map and notified the
cluster about removals. All access is synchronized.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected Map cache
cluster
protected ClusterIF cluster
cacheType
protected int cacheType
namespace
protected IdentityIF namespace
get
public Object get(Object key)
- Specified by:
get
in interface CacheIF
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface CacheIF
remove
public Object remove(Object key,
boolean notifyCluster)
- Specified by:
remove
in interface CacheIF
removeAll
public void removeAll(Collection keys,
boolean notifyCluster)
- Specified by:
removeAll
in interface CacheIF
clear
public void clear(boolean notifyCluster)
- Specified by:
clear
in interface CacheIF
writeReport
public void writeReport(Writer out,
boolean dumpCache)
throws IOException
- Specified by:
writeReport
in interface CacheIF
- Throws:
IOException
Copyright © 2000-2012 Ontopia.