public abstract class CollectingIntermediateResultListener<E> extends Object implements IIntermediateResultListener<E>
Constructor and Description |
---|
CollectingIntermediateResultListener() |
Modifier and Type | Method and Description |
---|---|
abstract void |
exceptionOccurred(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(Collection<E> result)
Called when the result is available.
|
public CollectingIntermediateResultListener()
public abstract void resultAvailable(Collection<E> result)
resultAvailable
in interface IFunctionalResultListener<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(Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.Copyright © 2015. All Rights Reserved.