Package jadex.commons.future
Class IntermediateEmptyResultListener<E>
- java.lang.Object
- 
- jadex.commons.future.IntermediateEmptyResultListener<E>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<E>,- IFunctionalIntermediateResultCountListener,- IFunctionalIntermediateResultListener<E>,- IFunctionalResultListener<java.util.Collection<E>>,- IIntermediateResultListener<E>,- IResultListener<java.util.Collection<E>>
 
 public class IntermediateEmptyResultListener<E> extends java.lang.Object implements IIntermediateResultListener<E> Empty implementation of the intermediate result listener. Allows for omitting methods if not used. Consider using instead of new IIntermediateResultListener<>()
- 
- 
Constructor SummaryConstructors Constructor Description IntermediateEmptyResultListener()
 - 
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.voidmaxResultCountAvailable(int max)Declare that the future result count is available.voidresultAvailable(java.util.Collection<E> result)Called when the result is available.
 
- 
- 
- 
Method Detail- 
intermediateResultAvailablepublic void intermediateResultAvailable(E result) Description copied from interface:IIntermediateResultListenerCalled when an intermediate result is available.- Specified by:
- intermediateResultAvailablein interface- IFunctionalIntermediateResultListener<E>
- Specified by:
- intermediateResultAvailablein interface- IIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
resultAvailablepublic void resultAvailable(java.util.Collection<E> result) Description copied from interface:IFunctionalResultListenerCalled when the result is available.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The result.
 
 - 
exceptionOccurredpublic void exceptionOccurred(java.lang.Exception exception) Description copied from interface:IFunctionalExceptionListenerCalled when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 - 
finishedpublic void finished() Description copied from interface:IIntermediateResultListenerDeclare 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>
 
 - 
maxResultCountAvailablepublic void maxResultCountAvailable(int max) Description copied from interface:IIntermediateResultListenerDeclare that the future result count is available. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method will be called as often as the result count indicates except an exception occurs.- Specified by:
- maxResultCountAvailablein interface- IFunctionalIntermediateResultCountListener
- Specified by:
- maxResultCountAvailablein interface- IIntermediateResultListener<E>
 
 
- 
 
-