本文整理汇总了Java中com.espertech.esper.client.Configuration.addVariable方法的典型用法代码示例。如果您正苦于以下问题:Java Configuration.addVariable方法的具体用法?Java Configuration.addVariable怎么用?Java Configuration.addVariable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.espertech.esper.client.Configuration
的用法示例。
在下文中一共展示了Configuration.addVariable方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("TypeS0", SupportBean_S0.class);
configuration.addEventType("TypeS2", SupportBean_S2.class);
configuration.addVariable("vars0_A", "TypeS0", new SupportBean_S0(10));
configuration.addVariable("vars1_A", SupportBean_S1.class.getName(), new SupportBean_S1(20));
configuration.addVariable("varsobj1", Object.class.getName(), 123);
nonSerializable = new NonSerializable("abc");
configuration.addVariable("myNonSerializable", NonSerializable.class, nonSerializable);
}
示例2: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.getEngineDefaults().getLogging().setEnableQueryPlan(true);
configuration.getEngineDefaults().getLogging().setEnableCode(true);
configuration.getEngineDefaults().getByteCodeGeneration().setIncludeDebugSymbols(true);
configuration.addEventType(SupportBeanInt.class);
configuration.addImport(SupportJoinMethods.class.getName());
configuration.addVariable("var1", Integer.class, 0);
configuration.addVariable("var2", Integer.class, 0);
configuration.addVariable("var3", Integer.class, 0);
configuration.addVariable("var4", Integer.class, 0);
}
示例3: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType(SupportBeanInt.class);
configuration.addEventType(SupportBean.class);
configuration.addImport(SupportJoinMethods.class.getName());
configuration.addVariable("var1", Integer.class, 0);
configuration.addVariable("var2", Integer.class, 0);
configuration.addVariable("var3", Integer.class, 0);
configuration.addVariable("var4", Integer.class, 0);
}
示例4: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addVariable("var", int.class, 0);
ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc = new ConfigurationEventTypeXMLDOM();
xmlDOMEventTypeDesc.setRootElementName("myevent");
xmlDOMEventTypeDesc.addXPathProperty("xpathAttrNum", "/myevent/@attrnum", XPathConstants.STRING, "long");
xmlDOMEventTypeDesc.addXPathProperty("xpathAttrNumTwo", "/myevent/@attrnumtwo", XPathConstants.STRING, "long");
configuration.addEventType("TestXMLNoSchemaType", xmlDOMEventTypeDesc);
}
示例5: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("MyEvent", SupportRecogBean.class);
configuration.addImport(SupportStaticMethodLib.class.getName());
configuration.addImport(Hint.class.getName());
configuration.addVariable("mySleepDuration", long.class, 100); // msec
}