public abstract class CollectingIntermediateResultListener<E> extends java.lang.Object implements IIntermediateResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<E> |
results
The results.
|
Constructor and Description |
---|
CollectingIntermediateResultListener() |
Modifier and Type | Method and Description |
---|---|
abstract void |
exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.
|
void |
finished()
Declare that the future is finished.
|
void |
intermediateResultAvailable(E result)
Called when an intermediate result is available.
|
abstract void |
resultAvailable(java.util.Collection<E> result)
Called when the result is available.
|
protected java.util.Collection<E> results
public CollectingIntermediateResultListener()
public abstract void resultAvailable(java.util.Collection<E> result)
resultAvailable
in interface IFunctionalResultListener<java.util.Collection<E>>
resultAvailable
in interface IIntermediateResultListener<E>
result
- The final result.public void intermediateResultAvailable(E result)
intermediateResultAvailable
in interface IIntermediateResultListener<E>
result
- The result.public void finished()
finished
in interface IIntermediateResultListener<E>
public abstract void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.