com.espertech.esper.dataflow.util
Class DefaultSupportCaptureOp<T>

java.lang.Object
  extended by 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[]>


Constructor Summary
DefaultSupportCaptureOp()
           
DefaultSupportCaptureOp(int latchedNumRows)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSupportCaptureOp

public DefaultSupportCaptureOp()

DefaultSupportCaptureOp

public DefaultSupportCaptureOp(int latchedNumRows)
Method Detail

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 wait
numberOfNewEvents - in any number of separate invocations required before returning
Throws:
java.lang.RuntimeException - when no results or insufficient number of events were received

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com