Package net.ontopia.persistence.proxy
Class QueryCache<K,E>
- java.lang.Object
-
- net.ontopia.persistence.proxy.QueryCache<K,E>
-
- All Implemented Interfaces:
CacheMetricsIF
,EvictableIF<K,E>
public class QueryCache<K,E> extends Object implements EvictableIF<K,E>, CacheMetricsIF
INTERNAL: A storage access implementation accessing relational databases using JDBC.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(boolean notifyCluster)
E
executeQuery(StorageAccessIF access, K cachekey, Object[] query_params)
long
getCacheSize()
long
getLRUSize()
long
getMaxLRUSize()
E
remove(K key)
E
remove(K key, boolean notifyCluster)
void
removeAll(Collection<K> keys)
void
removeAll(Collection<K> keys, boolean notifyCluster)
void
writeReport(Writer out, boolean dumpCache)
-
-
-
Method Detail
-
executeQuery
public E executeQuery(StorageAccessIF access, K cachekey, Object[] query_params)
-
removeAll
public void removeAll(Collection<K> keys)
-
remove
public E remove(K key, boolean notifyCluster)
- Specified by:
remove
in interfaceEvictableIF<K,E>
-
removeAll
public void removeAll(Collection<K> keys, boolean notifyCluster)
- Specified by:
removeAll
in interfaceEvictableIF<K,E>
-
clear
public void clear(boolean notifyCluster)
- Specified by:
clear
in interfaceEvictableIF<K,E>
-
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
-
-