Class HistoricalDataCacheFactory
java.lang.Object
com.espertech.esper.common.internal.epl.historical.datacache.HistoricalDataCacheFactory
Factory for data caches for use caching database query results and method invocation results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDataCache
(ConfigurationCommonCache cacheDesc, AgentInstanceContext agentInstanceContext, int streamNum, int scheduleCallbackId) Creates a cache implementation for the strategy as defined by the cache descriptor.protected HistoricalDataCache
makeTimeCache
(ConfigurationCommonCacheExpiryTime expCache, AgentInstanceContext agentInstanceContext, int streamNum, int scheduleCallbackId)
-
Constructor Details
-
HistoricalDataCacheFactory
public HistoricalDataCacheFactory()
-
-
Method Details
-
getDataCache
public HistoricalDataCache getDataCache(ConfigurationCommonCache cacheDesc, AgentInstanceContext agentInstanceContext, int streamNum, int scheduleCallbackId) Creates a cache implementation for the strategy as defined by the cache descriptor.- Parameters:
cacheDesc
- cache descriptoragentInstanceContext
- agent instance contextstreamNum
- stream numberscheduleCallbackId
- callback id- Returns:
- data cache implementation
-
makeTimeCache
protected HistoricalDataCache makeTimeCache(ConfigurationCommonCacheExpiryTime expCache, AgentInstanceContext agentInstanceContext, int streamNum, int scheduleCallbackId)
-