Package jadex.commons.future
Interface IIntermediateResultListener<E>
-
- All Superinterfaces:
IResultListener<java.util.Collection<E>>
- All Known Subinterfaces:
IIntermediateFutureCommandResultListener<E>
,IMultiplexCollector
,ITuple2ResultListener<E,F>
,IUndoneIntermediateResultListener<E>
- All Known Implementing Classes:
CollectingIntermediateResultListener
,DefaultTuple2ResultListener
,DuplicateRemovalIntermediateResultListener
,FlattenMultiplexCollector
,IntermediateComponentResultListener
,IntermediateDefaultResultListener
,IntermediateDelegationResultListener
,IntermediateEmptyResultListener
,IntermediateExceptionDelegationResultListener
,MultiServiceInvocationHandler.IntermediateMethodResultListener
,ServiceRankingDelegationResultListener
,ServiceRankingDelegationResultListener2
,ServiceRankingResultListener
,SwingIntermediateDefaultResultListener
,SwingIntermediateDelegationResultListener
,SwingIntermediateExceptionDelegationResultListener
,SwingIntermediateResultListener
,TimeoutIntermediateResultListener
,UnlimitedIntermediateDelegationResultListener
public interface IIntermediateResultListener<E> extends IResultListener<java.util.Collection<E>>
Result listener with additional notifications in case of intermediate results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finished()
Declare that the future is finished.void
intermediateResultAvailable(E result)
Called when an intermediate result is available.void
maxResultCountAvailable(int max)
Declare that the future result count is available.-
Methods inherited from interface jadex.commons.future.IResultListener
exceptionOccurred, resultAvailable
-
-
-
-
Method Detail
-
intermediateResultAvailable
void intermediateResultAvailable(E result)
Called when an intermediate result is available.- Parameters:
result
- The result.
-
finished
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.
-
maxResultCountAvailable
void maxResultCountAvailable(int max)
Declare 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.
-
-