com.espertech.esper.epl.db
Class DataCacheFactory

java.lang.Object
  extended by 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.


Constructor Summary
DataCacheFactory()
           
 
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
 

Constructor Detail

DataCacheFactory

public DataCacheFactory()
Method Detail

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 descriptor
epStatementAgentInstanceHandle - statement handle for timer invocations
schedulingService - scheduling service for time-based caches
scheduleBucket - for ordered timer invokation
Returns:
data cache implementation

makeTimeCache

protected DataCache makeTimeCache(ConfigurationExpiryTimeCache expCache,
                                  StatementContext statementContext,
                                  EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
                                  SchedulingService schedulingService,
                                  ScheduleBucket scheduleBucket,
                                  int streamNum)

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com