Class DefaultTuple2ResultListener<E,​F>

    • Constructor Detail

      • DefaultTuple2ResultListener

        public DefaultTuple2ResultListener()
    • Method Detail

      • resultAvailable

        public void resultAvailable​(java.util.Collection<TupleResult> result)
        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:
        resultAvailable in interface IResultListener<E>
        Parameters:
        result - The final result.
      • finished

        public 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:
        finished in interface IIntermediateResultListener<E>
      • maxResultCountAvailable

        public void maxResultCountAvailable​(int count)
        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.
        Specified by:
        maxResultCountAvailable in interface IIntermediateResultListener<E>