Class ResubmissionDestination.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<ResubmissionDestination>
co.yellowdog.platform.model.ResubmissionDestination.Builder
- Enclosing class:
ResubmissionDestination
public static class ResubmissionDestination.Builder
extends ValidatedBuilder<ResubmissionDestination>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and validates the object.destinationTaskGroup(String destinationTaskGroup) Name of theTaskGroupto which any matchingTaskStatus.FAILEDtasks should be resubmitted.resubmitErrors(Selection<TaskErrorSelector> resubmitErrors) toString()Methods inherited from class ValidatedBuilder
buildUnchecked, validate
-
Method Details
-
destinationTaskGroup
Name of theTaskGroupto which any matchingTaskStatus.FAILEDtasks should be resubmitted.- Returns:
this.
-
resubmitErrors
OptionalSelectionto determine whichTasks are eligible to be resubmitted to the to destinationTaskGroup. If noSelectionis specified, all errors will match. Make sure to only omitresubmitErrorsif this is the lastResubmissionDestinationin theFailurePolicy, otherwise and proceedingResubmissionDestinations will be unreachable.The
TaskErrorSelectorwill be applied to the last seen error.- Returns:
this.
-
build
Description copied from class:ValidatedBuilderBuilds and validates the object.- Overrides:
buildin classValidatedBuilder<ResubmissionDestination>- Returns:
- the object being built
-
toString
-