Package jadex.future

Interface IIntermediateResultListener<E>

All Superinterfaces:
IResultListener<Collection<E>>
All Known Subinterfaces:
IIntermediateFutureCommandResultListener<E>, ITuple2ResultListener<E,F>, IUndoneIntermediateResultListener<E>
All Known Implementing Classes:
CollectingIntermediateResultListener, DefaultTuple2ResultListener, DuplicateRemovalIntermediateResultListener, IntermediateDefaultResultListener, IntermediateDelegationResultListener, IntermediateEmptyResultListener, IntermediateExceptionDelegationResultListener, UnlimitedIntermediateDelegationResultListener

public interface IIntermediateResultListener<E> extends IResultListener<Collection<E>>
Result listener with additional notifications in case of intermediate results.
  • Method Details

    • 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.