本文整理汇总了Java中com.espertech.esper.core.thread.ThreadingServiceImpl类的典型用法代码示例。如果您正苦于以下问题:Java ThreadingServiceImpl类的具体用法?Java ThreadingServiceImpl怎么用?Java ThreadingServiceImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ThreadingServiceImpl类属于com.espertech.esper.core.thread包,在下文中一共展示了ThreadingServiceImpl类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import com.espertech.esper.core.thread.ThreadingServiceImpl; //导入依赖的package包/类
public void setUp() {
MetricReportingPath.setMetricsEnabled(false);
listenerOne = new SupportUpdateListener();
listenerTwo = new SupportUpdateListener();
EPStatementListenerSet listenerSet = new EPStatementListenerSet();
listenerSet.addListener(listenerOne);
listenerSet.addListener(listenerTwo);
dispatchService = new DispatchServiceImpl();
statementResultService = new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading()));
statementResultService.setUpdateListeners(listenerSet, false);
statementResultService.setSelectClause(new Class[1], new String[1], false, new ExprEvaluator[1], new SupportExprEvaluatorContext(null));
statementResultService.setContext(new SupportEPStatementSPI(), null, false, false, false, false, null);
updateDispatchView = new UpdateDispatchViewBlockingWait(statementResultService, dispatchService, 1000);
}
示例2: setUp
import com.espertech.esper.core.thread.ThreadingServiceImpl; //导入依赖的package包/类
public void setUp()
{
MetricReportingPath.setMetricsEnabled(false);
listenerOne = new SupportUpdateListener();
listenerTwo = new SupportUpdateListener();
EPStatementListenerSet listenerSet = new EPStatementListenerSet();
listenerSet.addListener(listenerOne);
listenerSet.addListener(listenerTwo);
dispatchService = new DispatchServiceImpl();
statementResultService = new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading()));
statementResultService.setUpdateListeners(listenerSet);
updateDispatchView = new UpdateDispatchViewBlockingWait(statementResultService, dispatchService, 1000);
}
示例3: makeContext
import com.espertech.esper.core.thread.ThreadingServiceImpl; //导入依赖的package包/类
public static StatementContext makeContext(int statementId, SchedulingService stub) {
Configuration config = new Configuration();
config.getEngineDefaults().getViewResources().setAllowMultipleExpiryPolicies(true);
TimeSourceServiceImpl timeSourceService = new TimeSourceServiceImpl();
StatementContextEngineServices stmtEngineServices = new StatementContextEngineServices("engURI",
SupportEventAdapterService.getService(),
new NamedWindowMgmtServiceImpl(false, null),
null, new TableServiceImpl(),
new EngineSettingsService(new Configuration().getEngineDefaults(), new URI[0]),
new ValueAddEventServiceImpl(),
config,
null,
null,
null,
null,
new StatementEventTypeRefImpl(), null, null, null, null, null, new ViewServicePreviousFactoryImpl(), null, new PatternNodeFactoryImpl(), new FilterBooleanExpressionFactoryImpl(), timeSourceService, SupportEngineImportServiceFactory.make(), AggregationFactoryFactoryDefault.INSTANCE, new SchedulingServiceImpl(timeSourceService), null);
return new StatementContext(stmtEngineServices,
stub,
new ScheduleBucket(1),
new EPStatementHandle(statementId, "name1", "epl1", StatementType.SELECT, "epl1", false, null, 0, false, false, new MultiMatchHandlerFactoryImpl().getDefaultHandler()),
new ViewResolutionServiceImpl(new PluggableObjectRegistryImpl(new PluggableObjectCollection[]{ViewEnumHelper.getBuiltinViews()}), null, null),
new PatternObjectResolutionServiceImpl(null),
null,
null,
null,
null,
new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading())), // statement result svc
null,
null,
null,
null,
null,
null,
null,
false,
null,
null,
AggregationServiceFactoryServiceImpl.DEFAULT_FACTORY,
false,
null, new StatementSemiAnonymousTypeRegistryImpl(), 0);
}
示例4: makeContext
import com.espertech.esper.core.thread.ThreadingServiceImpl; //导入依赖的package包/类
public static StatementContext makeContext(SchedulingService stub)
{
VariableServiceImpl variableService = new VariableServiceImpl(1000, null, SupportEventAdapterService.getService(), null);
Configuration config = new Configuration();
config.getEngineDefaults().getViewResources().setAllowMultipleExpiryPolicies(true);
StatementContextEngineServices stmtEngineServices = new StatementContextEngineServices("engURI",
SupportEventAdapterService.getService(),
new NamedWindowServiceImpl(null, variableService, false, new ManagedReadWriteLock("dummyeplock", true), new ExceptionHandlingService("engURI", Collections.<ExceptionHandler>emptyList(), Collections.<ConditionHandler>emptyList()), false, null),
null,
new EngineSettingsService(new Configuration().getEngineDefaults(), new URI[0]),
new ValueAddEventServiceImpl(),
config,
null,
null,
null,
null);
return new StatementContext(stmtEngineServices,
"stmtId",
null,
"stmtName",
"exprHere",
stub,
new ScheduleBucket(1),
null,
new ViewResolutionServiceImpl(new PluggableObjectRegistryImpl(new PluggableObjectCollection[] {ViewEnumHelper.getBuiltinViews()}), null, null),
new PatternObjectResolutionServiceImpl(null),
null,
null,
new MethodResolutionServiceImpl(new EngineImportServiceImpl(true, true, true), null),
null,
null,
new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading())), // statement result svc
null,
null,
null,
null,
null,
null,
false,
null,
null,
AggregationServiceFactoryServiceImpl.DEFAULT_FACTORY);
}