Package jadex.commons.future
Class UnlimitedIntermediateDelegationResultListener<E>
- java.lang.Object
- 
- jadex.commons.future.UnlimitedIntermediateDelegationResultListener<E>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<E>,- IFunctionalIntermediateResultListener<E>,- IFunctionalResultListener<java.util.Collection<E>>,- IIntermediateResultListener<E>,- IResultListener<java.util.Collection<E>>
 
 public class UnlimitedIntermediateDelegationResultListener<E> extends java.lang.Object implements IIntermediateResultListener<E> Listener that forwards results but not finished events.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IntermediateFuture<E>delegateThe delegate future.
 - 
Constructor SummaryConstructors Constructor Description UnlimitedIntermediateDelegationResultListener(IntermediateFuture<E> delegate)Create a new UnlimitedIntermediateDelegationResultListener.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexceptionOccurred(java.lang.Exception exception)Called when an exception occurred.voidfinished()Declare that the future is finished.voidintermediateResultAvailable(E result)Called when an intermediate result is available.voidresultAvailable(java.util.Collection<E> results)Called when the result is available.
 
- 
- 
- 
Field Detail- 
delegateprotected IntermediateFuture<E> delegate The delegate future.
 
- 
 - 
Constructor Detail- 
UnlimitedIntermediateDelegationResultListenerpublic UnlimitedIntermediateDelegationResultListener(IntermediateFuture<E> delegate) Create a new UnlimitedIntermediateDelegationResultListener.
 
- 
 - 
Method Detail- 
intermediateResultAvailablepublic void intermediateResultAvailable(E result) Called when an intermediate result is available.- Specified by:
- intermediateResultAvailablein interface- IFunctionalIntermediateResultListener<E>
- Specified by:
- intermediateResultAvailablein interface- IIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
finishedpublic void finished() Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.- Specified by:
- finishedin interface- IFunctionalIntermediateFinishedListener<E>
- Specified by:
- finishedin interface- IIntermediateResultListener<E>
 
 - 
resultAvailablepublic void resultAvailable(java.util.Collection<E> results) Called when the result is available. This method is only called for non-intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method has not been called.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The final result.
 
 - 
exceptionOccurredpublic void exceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 
- 
 
-