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(ISuspendable caller)
Get the first result.
|
F |
getSecondResult()
Get the second result.
|
F |
getSecondResult(ISuspendable caller)
Get the second result.
|
addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, addIntermediateResultListener, getIntermediateResults, getNextIntermediateResult, hasNextIntermediateResult
addResultListener, addResultListener, addResultListener, get, get, get, get, getException, isDone
E getFirstResult()
NoSuchElementException,
- when there are no more intermediate results and the future is finished.E getFirstResult(ISuspendable caller)
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.F getSecondResult(ISuspendable caller)
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.Copyright © 2015. All Rights Reserved.