Interface Sequence<C extends FlowContext>

    • Field Detail

      • DEFAULT_FAIL_FAST

        static final boolean DEFAULT_FAIL_FAST
        By default, the execution of tasks fail fast.
        See Also:
        Constant Field Values
      • DEFAULT_TIMEOUT

        static final long DEFAULT_TIMEOUT
        By default, no timeout is used.
        See Also:
        Constant Field Values
    • Method Detail

      • failFast

        Sequence<C> failFast​(boolean failFast)
        Whether the execution of tasks should fail fast or fail last. Defaults to true.
      • timeout

        Sequence<C> timeout​(long timeout)
        The timeout in milliseconds for the sequence. Defaults to no timeout (-1L).

        Please note that this only applies to sequential flows. The timeout has no effect for parallel flows. The promise API does not provide a method to cancel running promises.