public interface ITuple2Future<E,F> extends IIntermediateFuture<TupleResult>
DONE| Modifier and Type | Method and Description | 
|---|---|
| void | addTuple2ResultListener(IFunctionalResultListener<E> firstListener,
                       IFunctionalResultListener<F> secondListener)Uses two functional result listeners to create a Tuple2ResultListener and add it. | 
| void | addTuple2ResultListener(IFunctionalResultListener<E> firstListener,
                       IFunctionalResultListener<F> secondListener,
                       IFunctionalExceptionListener exceptionListener)Uses two functional result listeners to create a Tuple2ResultListener and add it. | 
| E | getFirstResult()Get the first result. | 
| E | getFirstResult(long timeout)Get the first result. | 
| E | getFirstResult(long timeout,
              boolean realtime)Get the first result. | 
| E | getFirstResult(ThreadSuspendable sus)Deprecated. 
 - From 3.0. Use method without suspendable. 
  Get the first result. | 
| F | getSecondResult()Get the second result. | 
| F | getSecondResult(long timeout)Get the second result. | 
| F | getSecondResult(long timeout,
               boolean realtime)Get the second result. | 
addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, flatMapAsync, getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult, mapAsync, mapAsyncacceptEither, addResultListener, addResultListener, addResultListener, applyToEither, get, get, get, get, get, getException, isDone, thenAccept, thenAccept, thenApply, thenApply, thenCombine, thenCompose, thenComposeE getFirstResult(ThreadSuspendable sus)
NoSuchElementException, - when there are no more intermediate results and the future is finished.E getFirstResult()
NoSuchElementException, - when there are no more intermediate results and the future is finished.F getSecondResult()
NoSuchElementException, - when there are no more intermediate results and the future is finished.E getFirstResult(long timeout)
timeout - The timeout in millis.NoSuchElementException, - when there are no more intermediate results and the future is finished.F getSecondResult(long timeout)
timeout - The timeout in millis.NoSuchElementException, - when there are no more intermediate results and the future is finished.E getFirstResult(long timeout, boolean realtime)
timeout - The timeout in millis.realtime - Flag if wait should be realtime (in contrast to simulation time).NoSuchElementException, - when there are no more intermediate results and the future is finished.F getSecondResult(long timeout, boolean realtime)
timeout - The timeout in millis.realtime - Flag if wait should be realtime (in contrast to simulation time).NoSuchElementException, - when there are no more intermediate results and the future is finished.void addTuple2ResultListener(IFunctionalResultListener<E> firstListener, IFunctionalResultListener<F> secondListener)
firstListener - Listener for the first available result.secondListener - Listener for the second available result.void addTuple2ResultListener(IFunctionalResultListener<E> firstListener, IFunctionalResultListener<F> secondListener, IFunctionalExceptionListener exceptionListener)
firstListener - Listener for the first available result.secondListener - Listener for the second available result.exListener - The listener that is called on exceptions. Passing
        null enables default exception logging.