Constructor and Description |
---|
DataCacheLRUImpl(int cacheSize)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
EventTable[] |
getCached(Object[] methodParams,
int numInputParameters)
Retrieves an entry from the cache.
|
int |
getCacheSize()
Returns the maximum cache size.
|
boolean |
isActive()
Returns true if the cache is active and currently caching, or false if the cache is inactive and not currently caching
|
void |
put(Object[] methodParams,
int numLookupKeys,
EventTable[] rows)
Adds an entry to this cache.
|
public DataCacheLRUImpl(int cacheSize)
cacheSize
- is the maximum cache sizepublic EventTable[] getCached(Object[] methodParams, int numInputParameters)
getCached
in interface DataCache
methodParams
- the key whose associated value is to be returned.numInputParameters
- number of method param keys, from the start, that are for cache lookuppublic void put(Object[] methodParams, int numLookupKeys, EventTable[] rows)
public int getCacheSize()
public boolean isActive()
DataCache