@Beta
public static class DynamicSequentialTask.FailureHandlingConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
abortSecondaryQueueOnPrimaryFailure
secondary queue runs independently of primary task (submitting and blocking on each secondary task in order),
but can set it up not to submit any more tasks if the primary fails
|
boolean |
abortSecondaryQueueOnSecondaryFailure
secondary queue can continue submitting+blocking tasks even if a secondary task fails (unusual;
typically handled by
TaskTags#markInessential(Task) on the secondary tasks, in which case
the secondary queue is never aborted |
boolean |
cancelPrimaryOnSecondaryFailure
whether to issue cancel against primary task if a secondary task fails
|
boolean |
cancelSecondariesOnPrimaryFailure
as
abortSecondaryQueueOnPrimaryFailure but controls cancelling of secondary queue |
boolean |
cancelSecondariesOnSecondaryFailure
unsubmitted secondary tasks (ie those further in the queue) can be cancelled if a secondary task fails
|
static DynamicSequentialTask.FailureHandlingConfig |
DEFAULT |
boolean |
failParentOnSecondaryFailure
whether to fail this task if a secondary task fails
|
static DynamicSequentialTask.FailureHandlingConfig |
SWALLOWING_CHILDREN_FAILURES |
Constructor and Description |
---|
DynamicSequentialTask.FailureHandlingConfig(boolean abortSecondaryQueueOnPrimaryFailure,
boolean cancelSecondariesOnPrimaryFailure,
boolean abortSecondaryQueueOnSecondaryFailure,
boolean cancelSecondariesOnSecondaryFailure,
boolean cancelPrimaryOnSecondaryFailure,
boolean failParentOnSecondaryFailure) |
public final boolean abortSecondaryQueueOnPrimaryFailure
public final boolean cancelSecondariesOnPrimaryFailure
abortSecondaryQueueOnPrimaryFailure
but controls cancelling of secondary queuepublic final boolean abortSecondaryQueueOnSecondaryFailure
TaskTags#markInessential(Task)
on the secondary tasks, in which case
the secondary queue is never abortedpublic final boolean cancelSecondariesOnSecondaryFailure
public final boolean cancelPrimaryOnSecondaryFailure
public final boolean failParentOnSecondaryFailure
public static final DynamicSequentialTask.FailureHandlingConfig DEFAULT
public static final DynamicSequentialTask.FailureHandlingConfig SWALLOWING_CHILDREN_FAILURES
@Beta public DynamicSequentialTask.FailureHandlingConfig(boolean abortSecondaryQueueOnPrimaryFailure, boolean cancelSecondariesOnPrimaryFailure, boolean abortSecondaryQueueOnSecondaryFailure, boolean cancelSecondariesOnSecondaryFailure, boolean cancelPrimaryOnSecondaryFailure, boolean failParentOnSecondaryFailure)