public class DefaultSupportCaptureOp<T> extends java.lang.Object implements EPDataFlowSignalHandler, java.util.concurrent.Future<java.lang.Object[]>
Constructor and Description |
---|
DefaultSupportCaptureOp() |
DefaultSupportCaptureOp(int latchedNumRows) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
java.lang.Object[] |
get() |
java.lang.Object[] |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.List<java.util.List<T>> |
getAndReset() |
java.lang.Object[] |
getCurrent() |
java.lang.Object[] |
getCurrentAndReset() |
java.lang.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 java.util.List<java.util.List<T>> getAndReset()
public java.lang.Object[] getCurrent()
public java.lang.Object[] getCurrentAndReset()
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface java.util.concurrent.Future<java.lang.Object[]>
public boolean isCancelled()
isCancelled
in interface java.util.concurrent.Future<java.lang.Object[]>
public boolean isDone()
isDone
in interface java.util.concurrent.Future<java.lang.Object[]>
public java.lang.Object[] get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
in interface java.util.concurrent.Future<java.lang.Object[]>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.lang.Object[] get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<java.lang.Object[]>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public java.lang.Object[] getPunctuated() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void waitForInvocation(long msecWait, int numberOfNewEvents)
msecWait
- to waitnumberOfNewEvents
- in any number of separate invocations required before returningjava.lang.RuntimeException
- when no results or insufficient number of events were received