Package net.ontopia.persistence.proxy
Class TransactionalLRULookupIndex
- java.lang.Object
-
- net.ontopia.persistence.proxy.TransactionalLRULookupIndex
-
- All Implemented Interfaces:
CacheMetricsIF
,EvictableIF
,TransactionalLookupIndexIF
public class TransactionalLRULookupIndex extends Object implements TransactionalLookupIndexIF, EvictableIF, CacheMetricsIF
INTERNAL:
-
-
Constructor Summary
Constructors Constructor Description TransactionalLRULookupIndex(CacheIF cache, int lrusize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort()
void
clear(boolean notifyCluster)
void
commit()
Object
get(Object key)
long
getCacheSize()
long
getLRUSize()
long
getMaxLRUSize()
Object
put(Object key, Object value)
Object
remove(Object key)
Object
remove(Object key, boolean notifyCluster)
void
removeAll(Collection keys)
void
removeAll(Collection keys, boolean notifyCluster)
void
writeReport(Writer out, boolean dumpCache)
-
-
-
Constructor Detail
-
TransactionalLRULookupIndex
public TransactionalLRULookupIndex(CacheIF cache, int lrusize)
-
-
Method Detail
-
get
public Object get(Object key)
- Specified by:
get
in interfaceTransactionalLookupIndexIF
-
put
public Object put(Object key, Object value)
- Specified by:
put
in interfaceTransactionalLookupIndexIF
-
remove
public Object remove(Object key)
- Specified by:
remove
in interfaceTransactionalLookupIndexIF
-
removeAll
public void removeAll(Collection keys)
- Specified by:
removeAll
in interfaceTransactionalLookupIndexIF
-
commit
public void commit()
- Specified by:
commit
in interfaceTransactionalLookupIndexIF
-
abort
public void abort()
- Specified by:
abort
in interfaceTransactionalLookupIndexIF
-
remove
public Object remove(Object key, boolean notifyCluster)
- Specified by:
remove
in interfaceEvictableIF
-
removeAll
public void removeAll(Collection keys, boolean notifyCluster)
- Specified by:
removeAll
in interfaceEvictableIF
-
clear
public void clear(boolean notifyCluster)
- Specified by:
clear
in interfaceEvictableIF
-
writeReport
public void writeReport(Writer out, boolean dumpCache) throws IOException
- Throws:
IOException
-
getCacheSize
public long getCacheSize()
- Specified by:
getCacheSize
in interfaceCacheMetricsIF
-
getLRUSize
public long getLRUSize()
- Specified by:
getLRUSize
in interfaceCacheMetricsIF
-
getMaxLRUSize
public long getMaxLRUSize()
- Specified by:
getMaxLRUSize
in interfaceCacheMetricsIF
-
-