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
FieldsModifier and TypeFieldDescriptionstatic final booleanBy default, the execution of tasks fail fast.static final longBy default, no timeout is used. -
Method Summary
Methods inherited from interface org.jboss.elemento.flow.Promisable
catch_, finally_, promise, then, thenMethods 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
-
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.
-