@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-15T23:35:58.914Z") @Stability(value=Experimental) public class Parallel extends State implements INextable
A Parallel state can be used to run one or more state machines at the same time.
The Result of a Parallel state is an array of the results of its substatemachines.
EXPERIMENTAL
| Modifier and Type | Class and Description |
|---|---|
static class |
Parallel.Builder
A fluent builder for
Parallel. |
software.amazon.jsii.JsiiObject.InitializationModeINextable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Parallel(Construct scope,
String id)
EXPERIMENTAL
|
|
Parallel(Construct scope,
String id,
ParallelProps props)
EXPERIMENTAL
|
protected |
Parallel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Parallel(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Parallel |
addCatch(IChainable handler)
Add a recovery handler for this state.
|
Parallel |
addCatch(IChainable handler,
CatchProps props)
Add a recovery handler for this state.
|
Parallel |
addRetry()
Add retry configuration for this state.
|
Parallel |
addRetry(RetryProps props)
Add retry configuration for this state.
|
Parallel |
branch(IChainable... branches)
Define one or more branches to run in parallel.
|
List<INextable> |
getEndStates()
Continuable states of this Chainable.
|
Chain |
next(IChainable next)
Continue normal execution with the given state.
|
com.fasterxml.jackson.databind.node.ObjectNode |
toStateJson()
Return the Amazon States Language object for this state.
|
protected List<String> |
validate()
Validate this state.
|
addBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderRetryCatch, setDefaultChoice, setIteration, whenBoundToGraphgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected Parallel(software.amazon.jsii.JsiiObjectRef objRef)
protected Parallel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Parallel(@NotNull
Construct scope,
@NotNull
String id,
@Nullable
ParallelProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental) @NotNull public Parallel addCatch(@NotNull IChainable handler, @Nullable CatchProps props)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
EXPERIMENTAL
handler - This parameter is required.props - @Stability(value=Experimental) @NotNull public Parallel addCatch(@NotNull IChainable handler)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
EXPERIMENTAL
handler - This parameter is required.@Stability(value=Experimental) @NotNull public Parallel addRetry(@Nullable RetryProps props)
This controls if and how the execution will be retried if a particular error occurs.
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Parallel addRetry()
This controls if and how the execution will be retried if a particular error occurs.
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Parallel branch(@NotNull IChainable... branches)
EXPERIMENTAL
branches - This parameter is required.@Stability(value=Experimental) @NotNull public Chain next(@NotNull IChainable next)
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
EXPERIMENTAL
toStateJson in class State@Stability(value=Experimental) @NotNull protected List<String> validate()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public List<INextable> getEndStates()
EXPERIMENTAL
getEndStates in interface IChainablegetEndStates in class StateCopyright © 2020. All rights reserved.