public class HistoricalDataCacheLRUImpl extends Object implements HistoricalDataCache
Constructor and Description |
---|
HistoricalDataCacheLRUImpl(int cacheSize)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
EventTable[] |
getCached(Object methodParams)
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,
EventTable[] rows)
Adds an entry to this cache.
|
public HistoricalDataCacheLRUImpl(int cacheSize)
cacheSize
- is the maximum cache sizepublic EventTable[] getCached(Object methodParams)
getCached
in interface HistoricalDataCache
methodParams
- the key whose associated value is to be returned.public void put(Object methodParams, EventTable[] rows)
put
in interface HistoricalDataCache
methodParams
- the keys with which the specified value is to be associated.rows
- a value to be associated with the specified key.public int getCacheSize()
public boolean isActive()
HistoricalDataCache
isActive
in interface HistoricalDataCache
public void destroy()
destroy
in interface HistoricalDataCache
Copyright © 2005–2018. All rights reserved.