public abstract class KAbstractDataCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
currentSize
The curent size (in bytes) of the cache.
|
protected long |
hits
The sucessfull retrieval data count.
|
protected long |
maximumSize
The maximum size (in bytes) of the cache, -1 if unlimited.
|
protected long |
misses
The number retrieval attemps.
|
Modifier | Constructor and Description |
---|---|
protected |
KAbstractDataCache(long maximumSize) |
Modifier and Type | Method and Description |
---|---|
abstract void |
export(KAbstractDataCache cache) |
abstract long |
getCount() |
abstract long |
getCount(java.lang.String partialKey) |
long |
getCurrentSize()
Returns the current size of the cache.
|
abstract long |
getCurrentSize(java.lang.String partialKey) |
long |
getHits()
Returns the sucessfull retrieval data count.
|
long |
getMaximumSize()
Returns the maximum size of the cache.
|
long |
getMisses()
Returns the number retrieval attemps.
|
KDataCacheMonitoringInfo |
getMonitoringInfo()
Returns a KDataCacheMonitoringInfo object that defines monitoring information about this data cache.
|
KDataCacheMonitoringInfo |
getMonitoringInfo(java.lang.String partialKey)
Returns a KDataCacheMonitoringInfo object that defines monitoring information about this data cache.
|
abstract void |
removeAll() |
abstract void |
removeMatching(java.lang.String partialKey) |
abstract void |
store(java.lang.String key,
byte[] data) |
protected long currentSize
protected long maximumSize
protected long hits
protected long misses
public long getCurrentSize()
public long getMaximumSize()
public long getHits()
public long getMisses()
public KDataCacheMonitoringInfo getMonitoringInfo()
public KDataCacheMonitoringInfo getMonitoringInfo(java.lang.String partialKey)
public abstract long getCount()
public abstract long getCount(java.lang.String partialKey)
public abstract long getCurrentSize(java.lang.String partialKey)
public abstract void store(java.lang.String key, byte[] data) throws java.io.IOException
java.io.IOException
public abstract void export(KAbstractDataCache cache) throws java.io.IOException
java.io.IOException
public abstract void removeAll()
public abstract void removeMatching(java.lang.String partialKey)