Interface Stage.OnComplete

  • All Superinterfaces:
    Stage
    Enclosing interface:
    Stage


    public static interface Stage.OnComplete
    extends Stage
    A stage returning a stream containing all the elements from this stream, additionally performing the provided action when this stream completes.

    The given action must be called when the stream completes successfully. Use Stage.OnError to handle failures, and Stage.OnTerminate if the action needs to be called for completion, error or cancellation.

    Any RuntimeException thrown by this function must be propagated downstream as an error.

    • Method Detail

      • getAction

        java.lang.Runnable getAction​()
        The action to execute.
        Returns:
        the action to execute.