net.ontopia.persistence.proxy
Class DefaultCache

java.lang.Object
  extended by net.ontopia.persistence.proxy.DefaultCache
All Implemented Interfaces:
CacheIF

public final class DefaultCache
extends java.lang.Object
implements CacheIF

INTERNAL: CacheIF implementation that wraps a Map. All access is synchronized.


Field Summary
protected  java.util.Map cache
           
 
Method Summary
 void clear(boolean notifyCluster)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key, boolean notifyCluster)
           
 void removeAll(java.util.Collection keys, boolean notifyCluster)
           
 void writeReport(java.io.Writer out, boolean dumpCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected java.util.Map cache
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface CacheIF

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface CacheIF

remove

public java.lang.Object remove(java.lang.Object key,
                               boolean notifyCluster)
Specified by:
remove in interface CacheIF

removeAll

public void removeAll(java.util.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(java.io.Writer out,
                        boolean dumpCache)
                 throws java.io.IOException
Specified by:
writeReport in interface CacheIF
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.