Class Budgets
java.lang.Object
org.apache.camel.support.task.budget.Budgets
Helper builder of budgets
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A helper builder of time bounded builders. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
atLeastOnce
(int iterations) Some components use 0 to disable retrying the task.
-
Method Details
-
timeBudget
-
iterationBudget
-
iterationTimeBudget
-
atLeastOnce
public static int atLeastOnce(int iterations) Some components use 0 to disable retrying the task. This sanitizes it to run at least once- Parameters:
iterations
- the number of iterations- Returns:
- an integer greater than or equal to 1 equivalent to the maximum number of iterations allowed
-