public class ExecutionPlan
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
static ExecutionPlan |
ABORT(java.util.List<ExecutableStage> stages) |
void |
applyOnEach(io.flamingock.internal.util.TriConsumer<java.lang.String,Lock,ExecutableStage> consumer) |
void |
close() |
static ExecutionPlan |
CONTINUE(java.util.List<ExecutableStage> stages) |
java.util.List<ExecutableStage> |
getExecutableStages() |
boolean |
isAborted() |
boolean |
isExecutionRequired() |
static ExecutionPlan |
newExecution(java.lang.String executionId,
Lock lock,
java.util.List<ExecutableStage> stages) |
void |
validate()
Validates the execution plan.
|
public static ExecutionPlan newExecution(java.lang.String executionId, Lock lock, java.util.List<ExecutableStage> stages)
public static ExecutionPlan CONTINUE(java.util.List<ExecutableStage> stages)
public static ExecutionPlan ABORT(java.util.List<ExecutableStage> stages)
public boolean isAborted()
public boolean isExecutionRequired()
public java.util.List<ExecutableStage> getExecutableStages()
public void applyOnEach(io.flamingock.internal.util.TriConsumer<java.lang.String,Lock,ExecutableStage> consumer)
public void validate()
Checks two conditions:
ManualInterventionRequiredExceptionFlamingockException
— the execution planner decided to abort for reasons beyond individual change stateio.flamingock.internal.common.core.recovery.ManualInterventionRequiredException - if any changes require manual interventionio.flamingock.internal.common.core.error.FlamingockException - if the plan is aborted without specific MI changespublic void close()
close in interface java.lang.AutoCloseable