Class IntermediateDefaultResultListener<E>

    • Constructor Detail

      • IntermediateDefaultResultListener

        public IntermediateDefaultResultListener()
        Create a new listener.
        Parameters:
        logger - The logger.
      • IntermediateDefaultResultListener

        public IntermediateDefaultResultListener​(java.util.logging.Logger logger)
        Create a new listener.
        Parameters:
        logger - The logger.
    • Method Detail

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

        public void resultAvailable​(java.util.Collection<E> result)
        Called when the result is available.
        Specified by:
        resultAvailable in interface IResultListener<E>
        Parameters:
        result - The result.
      • maxResultCountAvailable

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