com.espertech.esper.dataflow.util
Class DefaultSupportCaptureOp<T>
java.lang.Object
com.espertech.esper.dataflow.util.DefaultSupportCaptureOp<T>
- All Implemented Interfaces:
- EPDataFlowSignalHandler, java.util.concurrent.Future<java.lang.Object[]>
public class DefaultSupportCaptureOp<T>
- extends java.lang.Object
- implements EPDataFlowSignalHandler, java.util.concurrent.Future<java.lang.Object[]>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSupportCaptureOp
public DefaultSupportCaptureOp()
DefaultSupportCaptureOp
public DefaultSupportCaptureOp(int latchedNumRows)
onInput
public void onInput(T event)
onSignal
public void onSignal(EPDataFlowSignal signal)
- Specified by:
onSignal
in interface EPDataFlowSignalHandler
getAndReset
public java.util.List<java.util.List<T>> getAndReset()
getCurrent
public java.lang.Object[] getCurrent()
getCurrentAndReset
public java.lang.Object[] getCurrentAndReset()
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface java.util.concurrent.Future<java.lang.Object[]>
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface java.util.concurrent.Future<java.lang.Object[]>
isDone
public boolean isDone()
- Specified by:
isDone
in interface java.util.concurrent.Future<java.lang.Object[]>
get
public java.lang.Object[] get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
- Specified by:
get
in interface java.util.concurrent.Future<java.lang.Object[]>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public java.lang.Object[] get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- Specified by:
get
in interface java.util.concurrent.Future<java.lang.Object[]>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
getPunctuated
public java.lang.Object[] getPunctuated()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
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:
java.lang.RuntimeException
- when no results or insufficient number of events were received