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 voidclear(boolean notifyCluster)EexecuteQuery(StorageAccessIF access, K cachekey, Object[] query_params)longgetCacheSize()longgetLRUSize()longgetMaxLRUSize()Eremove(K key)Eremove(K key, boolean notifyCluster)voidremoveAll(Collection<K> keys)voidremoveAll(Collection<K> keys, boolean notifyCluster)voidwriteReport(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:
removein interfaceEvictableIF<K,E>
-
removeAll
public void removeAll(Collection<K> keys, boolean notifyCluster)
- Specified by:
removeAllin interfaceEvictableIF<K,E>
-
clear
public void clear(boolean notifyCluster)
- Specified by:
clearin interfaceEvictableIF<K,E>
-
writeReport
public void writeReport(Writer out, boolean dumpCache) throws IOException
- Throws:
IOException
-
getCacheSize
public long getCacheSize()
- Specified by:
getCacheSizein interfaceCacheMetricsIF
-
getLRUSize
public long getLRUSize()
- Specified by:
getLRUSizein interfaceCacheMetricsIF
-
getMaxLRUSize
public long getMaxLRUSize()
- Specified by:
getMaxLRUSizein interfaceCacheMetricsIF
-
-