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.
|
F |
getSecondResult()
Get the second result.
|
addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, flatMapAsync, getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult, mapAsync, mapAsync
acceptEither, addResultListener, addResultListener, addResultListener, applyToEither, get, get, getException, isDone, thenAccept, thenAccept, thenApply, thenApply, thenCombine, thenCompose, thenCompose
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.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.