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>
INTERNAL: A storage access implementation accessing relational
databases using JDBC.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(boolean notifyCluster) executeQuery(StorageAccessIF access, K cachekey, Object[] query_params) longlonglongvoidremoveAll(Collection<K> keys) voidremoveAll(Collection<K> keys, boolean notifyCluster) voidwriteReport(Writer out, boolean dumpCache)
-
Field Details
-
query
-
cache
-
lru
-
lrusize
protected int lrusize
-
-
Method Details
-
executeQuery
-
remove
-
removeAll
-
remove
- Specified by:
removein interfaceEvictableIF<K,E>
-
removeAll
- Specified by:
removeAllin interfaceEvictableIF<K,E>
-
clear
public void clear(boolean notifyCluster) - Specified by:
clearin interfaceEvictableIF<K,E>
-
writeReport
- 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
-