Class IterationBoundedBudgetBuilder
java.lang.Object
org.apache.camel.support.task.budget.IterationBoundedBudgetBuilder
- All Implemented Interfaces:
BudgetBuilder<IterationBudget>
A helper builder of iteration bounded builders. Provide generic/safe default values, but should be adjusted on a
per-case basis. By default, execute the iterations for up to Integer.MAX_VALUE.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BackOffStrategyprotected longprotected longprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the budgetwithBackOffStrategy(BackOffStrategy backOffStrategy) withInitialDelay(Duration duration) withInterval(Duration duration) withMaxIterations(int maxIterations)
-
Field Details
-
initialDelay
protected long initialDelay -
interval
protected long interval -
maxIterations
protected int maxIterations -
backOffStrategy
-
-
Constructor Details
-
IterationBoundedBudgetBuilder
public IterationBoundedBudgetBuilder()
-
-
Method Details
-
withInitialDelay
-
withInterval
-
withMaxIterations
-
withUnlimitedMaxIterations
-
withBackOffStrategy
-
build
Description copied from interface:BudgetBuilderBuild the budget- Specified by:
buildin interfaceBudgetBuilder<IterationBudget>- Returns:
- the budget that was built
-