Package org.jboss.elemento.flow
Interface Sequence<C extends FlowContext>
- Type Parameters:
C
- the type of the context shared between tasks
- All Superinterfaces:
Promisable<C>
,Subscription<C>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
By default, the execution of tasks fail fast.static final long
By default, no timeout is used. -
Method Summary
Methods inherited from interface org.jboss.elemento.flow.Promisable
catch_, finally_, promise, then, then
Methods inherited from interface org.jboss.elemento.flow.Subscription
subscribe
-
Field Details
-
DEFAULT_FAIL_FAST
static final boolean DEFAULT_FAIL_FASTBy default, the execution of tasks fail fast.- See Also:
-
DEFAULT_TIMEOUT
static final long DEFAULT_TIMEOUTBy default, no timeout is used.- See Also:
-
-
Method Details
-
failFast
Whether the execution of tasks should fail fast or fail last. Defaults to true<C extends FlowContext>. -
timeout
The timeout in milliseconds for the sequence. Defaults to no timeout (-1L<C extends FlowContext>).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.
-