public class LimitCountDataSetCache extends AbstractDataSetCache
AbstractDataSetCache.Entry
Modifier and Type | Field and Description |
---|---|
protected AbstractDataSetCache.Entry[] |
buffer |
hits, misses
Constructor and Description |
---|
LimitCountDataSetCache(int count)
Creates a new instance of StandardDataStreamCache
|
Modifier and Type | Method and Description |
---|---|
double |
calcHitRate() |
boolean |
haveStoredImpl(DataSetDescriptor dsd,
CacheTag cacheTag) |
void |
reset()
reset the internal state of the cache
|
DataSet |
retrieveImpl(DataSetDescriptor dsd,
CacheTag cacheTag) |
void |
store(DataSetDescriptor dsd,
CacheTag cacheTag,
DataSet data) |
java.lang.String |
toString() |
cacheValue, coalese, haveStored, isResetCache, retrieve, setResetCache
protected AbstractDataSetCache.Entry[] buffer
public LimitCountDataSetCache(int count)
public void store(DataSetDescriptor dsd, CacheTag cacheTag, DataSet data)
store
in interface DataSetCache
store
in class AbstractDataSetCache
public boolean haveStoredImpl(DataSetDescriptor dsd, CacheTag cacheTag)
public DataSet retrieveImpl(DataSetDescriptor dsd, CacheTag cacheTag)
public void reset()
AbstractDataSetCache
reset
in interface DataSetCache
reset
in class AbstractDataSetCache
public double calcHitRate()
public java.lang.String toString()
toString
in class java.lang.Object