本文整理汇总了Java中com.espertech.esper.client.dataflow.EPDataFlowSignal类的典型用法代码示例。如果您正苦于以下问题:Java EPDataFlowSignal类的具体用法?Java EPDataFlowSignal怎么用?Java EPDataFlowSignal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EPDataFlowSignal类属于com.espertech.esper.client.dataflow包,在下文中一共展示了EPDataFlowSignal类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
if (iterate && signal instanceof EPDataFlowSignalFinalMarker) {
Iterator<EventBean> it = selectResult.getFinalView().iterator();
if (it != null) {
for (;it.hasNext();) {
EventBean event = it.next();
if (submitEventBean) {
graphContext.submit(event);
}
else {
graphContext.submit(event.getUnderlying());
}
}
}
}
}
示例2: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
if (iterate && signal instanceof EPDataFlowSignalFinalMarker) {
Iterator<EventBean> it = selectResult.getFinalView().iterator();
if (it != null) {
for (; it.hasNext(); ) {
EventBean event = it.next();
if (submitEventBean) {
graphContext.submit(event);
} else {
graphContext.submit(event.getUnderlying());
}
}
}
}
}
示例3: processSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(EPDataFlowSignal signal) {
if (signal instanceof EPDataFlowSignalFinalMarker) {
if (runnable != null) {
runnable.shutdown();
}
}
}
示例4: processSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(int operatorNum, EPDataFlowSignal signal) {
List<DataFlowSignalListener> listeners = listenersPerOp.get(operatorNum);
if (listeners == null || listeners.isEmpty()) {
return;
}
for (DataFlowSignalListener listener : listeners) {
listener.processSignal(signal);
}
}
示例5: handleSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
@Override
public void handleSignal(EPDataFlowSignal signal) {
try {
handleSignalInternal(signal);
} catch (InvocationTargetException ex) {
log.error("Failed to invoke signal handler: " + ex.getMessage(), ex);
}
}
示例6: submitSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
signalManager.processSignal(operatorNum, signal);
for (SubmitHandler[] handlerArr : handlersPerStream) {
for (SubmitHandler handler : handlerArr) {
handler.handleSignal(signal);
}
}
}
示例7: handleSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
@Override
public void handleSignal(EPDataFlowSignal signal) {
try {
handleSignalInternal(signal);
}
catch (InvocationTargetException ex) {
log.error("Failed to invoke signal handler: " + ex.getMessage(), ex);
}
}
示例8: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
if (signal instanceof EPDataFlowSignalFinalMarker) {
destroy();
}
}
示例9: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
log.debug("Received punctuation, submitting totals: " + aggregate);
graphContext.submit(aggregate);
}
示例10: submitSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
dataFlowEmitter.submitSignal(signal);
}
示例11: submitSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
queue.add(signal);
}
示例12: processSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void processSignal(EPDataFlowSignal signal) {
if (signal instanceof EPDataFlowSignalFinalMarker) {
shutdown = true;
}
}
示例13: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
received.add(current);
current = new ArrayList<T>();
}
示例14: onSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void onSignal(EPDataFlowSignal signal) {
current.add(signal);
}
示例15: submitSignal
import com.espertech.esper.client.dataflow.EPDataFlowSignal; //导入依赖的package包/类
public void submitSignal(EPDataFlowSignal signal) {
signalManager.processSignal(operatorNum, signal);
for (SubmitHandler handler : targets) {
handler.handleSignal(signal);
}
}