Class CollectingIntermediateResultListener<E>

    • Field Detail

      • results

        protected java.util.Collection<E> results
        The results.
    • Constructor Detail

      • CollectingIntermediateResultListener

        public CollectingIntermediateResultListener()
    • Method Detail

      • resultAvailable

        public abstract void resultAvailable​(java.util.Collection<E> result)
        Called when the result is available.
        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>
      • exceptionOccurred

        public abstract void exceptionOccurred​(java.lang.Exception exception)
        Called when an exception occurred.
        Specified by:
        exceptionOccurred in interface IResultListener<E>
        Parameters:
        exception - The exception.