public interface IIntermediateFuture<E> extends IFuture<Collection<E>>
Modifier and Type | Field and Description |
---|---|
static IntermediateFuture<Void> |
DONE
A future representing a completed action.
|
Modifier and Type | Method and Description |
---|---|
Collection<E> |
getIntermediateResults()
Get the intermediate results that are currently available.
|
E |
getNextIntermediateResult(ISuspendable caller)
Iterate over the intermediate results in a blocking fashion.
|
boolean |
hasNextIntermediateResult(ISuspendable caller)
Check if there are more results for iteration for the given caller.
|
addResultListener, get, get, getException, isDone
static final IntermediateFuture<Void> DONE
Collection<E> getIntermediateResults()
boolean hasNextIntermediateResult(ISuspendable caller)
caller
- The caller that wants to iterate over intermediate results.E getNextIntermediateResult(ISuspendable caller)
caller
- The caller that wants to iterate over intermediate results.NoSuchElementException,
- when there are no more intermediate results and the future is finished.Copyright © 2012. All Rights Reserved.