public class IterationBoundedBudget extends Object implements IterationBudget
| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED_ITERATIONS
Defines an "unlimited" number of iterations
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinue()
Whether the task has budget to continue executing or not
|
Duration |
elapsed()
The amount of time that has elapsed since the budget was created.
|
long |
initialDelay()
Defines an initial delay before running the task
|
long |
interval()
The interval between each task execution
|
int |
iteration()
The current number of iterations
|
int |
maxIterations()
The maximum number of iterations
|
boolean |
next()
Move the task to the next iteration
|
public static final int UNLIMITED_ITERATIONS
public long initialDelay()
BudgetinitialDelay in interface Budgetpublic long interval()
Budgetpublic int maxIterations()
IterationBudgetmaxIterations in interface IterationBudgetpublic int iteration()
IterationBudgetiteration in interface IterationBudgetpublic boolean next()
Budgetpublic boolean canContinue()
BudgetcanContinue in interface Budgetpublic Duration elapsed()
BudgetApache Camel