com.espertech.esper.epl.db
Class DataCacheFactory
java.lang.Object
com.espertech.esper.epl.db.DataCacheFactory
public class DataCacheFactory
- extends java.lang.Object
Factory for data caches for use caching database query results and method invocation results.
Method Summary |
DataCache |
getDataCache(ConfigurationDataCache cacheDesc,
StatementContext statementContext,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
int streamNum)
Creates a cache implementation for the strategy as defined by the cache descriptor. |
protected DataCache |
makeTimeCache(ConfigurationExpiryTimeCache expCache,
StatementContext statementContext,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
int streamNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataCacheFactory
public DataCacheFactory()
getDataCache
public DataCache getDataCache(ConfigurationDataCache cacheDesc,
StatementContext statementContext,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
int streamNum)
- Creates a cache implementation for the strategy as defined by the cache descriptor.
- Parameters:
cacheDesc
- cache descriptorepStatementAgentInstanceHandle
- statement handle for timer invocationsschedulingService
- scheduling service for time-based cachesscheduleBucket
- for ordered timer invokation
- Returns:
- data cache implementation
makeTimeCache
protected DataCache makeTimeCache(ConfigurationExpiryTimeCache expCache,
StatementContext statementContext,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
int streamNum)