Interface ResultFuture<OUT>

    • Method Detail

      • complete

        void complete​(Collection<OUT> result)
        Completes the result future with a collection of result objects.

        Note that it should be called for exactly one time in the user code. Calling this function for multiple times will cause data lose.

        Put all results in a Collection and then emit output.

        Parameters:
        result - A list of results.
      • completeExceptionally

        void completeExceptionally​(Throwable error)
        Completes the result future exceptionally with an exception.
        Parameters:
        error - A Throwable object.