Class DefaultSupportCaptureOp<T>
java.lang.Object
com.espertech.esper.common.internal.epl.dataflow.util.DefaultSupportCaptureOp<T>
- All Implemented Interfaces:
DataFlowOperator
,EPDataFlowSignalHandler
,Future<Object[]>
public class DefaultSupportCaptureOp<T>
extends Object
implements DataFlowOperator, EPDataFlowSignalHandler, Future<Object[]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel
(boolean mayInterruptIfRunning) Object[]
get()
Object[]
Object[]
Object[]
Object[]
boolean
boolean
isDone()
void
void
onSignal
(EPDataFlowSignal signal) void
waitForInvocation
(long msecWait, int numberOfNewEvents) Wait for the listener invocation for up to the given number of milliseconds.
-
Constructor Details
-
DefaultSupportCaptureOp
public DefaultSupportCaptureOp() -
DefaultSupportCaptureOp
public DefaultSupportCaptureOp(int latchedNumRows)
-
-
Method Details
-
onInput
-
onSignal
- Specified by:
onSignal
in interfaceEPDataFlowSignalHandler
-
getAndReset
-
getCurrent
-
getCurrentAndReset
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public Object[] get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
getPunctuated
-
waitForInvocation
public void waitForInvocation(long msecWait, int numberOfNewEvents) Wait for the listener invocation for up to the given number of milliseconds.- Parameters:
msecWait
- to waitnumberOfNewEvents
- in any number of separate invocations required before returning- Throws:
RuntimeException
- when no results or insufficient number of events were received
-