本文整理匯總了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);
}
}