Class IterationTimeBoundedBudgetBuilder
java.lang.Object
org.apache.camel.support.task.budget.IterationTimeBoundedBudgetBuilder
- All Implemented Interfaces:
BudgetBuilder<IterationTimeBoundedBudget>
public class IterationTimeBoundedBudgetBuilder
extends Object
implements BudgetBuilder<IterationTimeBoundedBudget>
A helper builder of iteration and time 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 and a duration of 5 seconds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the budgetwithInitialDelay(Duration duration) withInterval(Duration duration) withMaxDuration(Duration duration) withMaxIterations(int maxIterations)
-
Constructor Details
-
IterationTimeBoundedBudgetBuilder
public IterationTimeBoundedBudgetBuilder()
-
-
Method Details
-
withInitialDelay
-
withInterval
-
withMaxIterations
-
withMaxDuration
-
withUnlimitedDuration
-
build
Description copied from interface:BudgetBuilderBuild the budget- Specified by:
buildin interfaceBudgetBuilder<IterationTimeBoundedBudget>- Returns:
- the budget that was built
-