net.ontopia.persistence.proxy
Class TransactionalLRULookupIndex

java.lang.Object
  extended by net.ontopia.persistence.proxy.TransactionalLRULookupIndex
All Implemented Interfaces:
EvictableIF, TransactionalLookupIndexIF, LookupIndexIF

public class TransactionalLRULookupIndex
extends java.lang.Object
implements TransactionalLookupIndexIF, EvictableIF

INTERNAL:


Field Summary
protected  CacheIF cache
           
protected  java.util.Map lru
           
protected  int lrusize
           
 
Constructor Summary
TransactionalLRULookupIndex(CacheIF cache, int lrusize)
           
 
Method Summary
 void abort()
           
 void clear(boolean notifyCluster)
           
 void commit()
           
 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)
           
 java.lang.Object remove(java.lang.Object key, boolean notifyCluster)
           
 void removeAll(java.util.Collection keys)
           
 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 CacheIF cache

lru

protected java.util.Map lru

lrusize

protected int lrusize
Constructor Detail

TransactionalLRULookupIndex

public TransactionalLRULookupIndex(CacheIF cache,
                                   int lrusize)
Method Detail

get

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

put

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

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface LookupIndexIF

removeAll

public void removeAll(java.util.Collection keys)
Specified by:
removeAll in interface TransactionalLookupIndexIF

commit

public void commit()
Specified by:
commit in interface TransactionalLookupIndexIF

abort

public void abort()
Specified by:
abort in interface TransactionalLookupIndexIF

remove

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

removeAll

public void removeAll(java.util.Collection keys,
                      boolean notifyCluster)
Specified by:
removeAll in interface EvictableIF

clear

public void clear(boolean notifyCluster)
Specified by:
clear in interface EvictableIF

writeReport

public void writeReport(java.io.Writer out,
                        boolean dumpCache)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.