public abstract class IntermediateExceptionDelegationResultListener<E,T> extends Object implements IIntermediateResultListener<E>
Constructor and Description |
---|
IntermediateExceptionDelegationResultListener(Future<T> future)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
customResultAvailable(Collection<E> result)
Called when the result is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
abstract void |
finished()
Declare that the future is finished.
|
abstract void |
intermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
resultAvailable(Collection<E> result)
Called when the result is available.
|
public void resultAvailable(Collection<E> result)
resultAvailable
in interface IIntermediateResultListener<E>
resultAvailable
in interface IResultListener<Collection<E>>
result
- The final result.public abstract void intermediateResultAvailable(E result)
intermediateResultAvailable
in interface IIntermediateResultListener<E>
result
- The result.public abstract void finished()
finished
in interface IIntermediateResultListener<E>
public abstract void customResultAvailable(Collection<E> result)
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<Collection<E>>
exception
- The exception.Copyright © 2012. All Rights Reserved.