public class DefaultSupportCaptureOp<T> extends Object implements EPDataFlowSignalHandler, Future<Object[]>
Constructor and Description |
---|
DefaultSupportCaptureOp() |
DefaultSupportCaptureOp(int latchedNumRows) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Object[] |
get() |
Object[] |
get(long timeout,
TimeUnit unit) |
List<List<T>> |
getAndReset() |
Object[] |
getCurrent() |
Object[] |
getCurrentAndReset() |
Object[] |
getPunctuated() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onInput(T event) |
void |
onSignal(EPDataFlowSignal signal) |
void |
waitForInvocation(long msecWait,
int numberOfNewEvents)
Wait for the listener invocation for up to the given number of milliseconds.
|
public DefaultSupportCaptureOp()
public DefaultSupportCaptureOp(int latchedNumRows)
public void onInput(T event)
public void onSignal(EPDataFlowSignal signal)
onSignal
in interface EPDataFlowSignalHandler
public Object[] getCurrent()
public Object[] getCurrentAndReset()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<Object[]>
public Object[] get() throws InterruptedException, ExecutionException
get
in interface Future<Object[]>
InterruptedException
ExecutionException
public Object[] get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Object[]>
InterruptedException
ExecutionException
TimeoutException
public Object[] getPunctuated() throws InterruptedException, ExecutionException, TimeoutException
public void waitForInvocation(long msecWait, int numberOfNewEvents)
msecWait
- to waitnumberOfNewEvents
- in any number of separate invocations required before returningRuntimeException
- when no results or insufficient number of events were received