public class TimeBoundedBudget extends Object implements TimeBudget
| Modifier and Type | Field and Description |
|---|---|
static long |
UNLIMITED_DURATION |
| 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
|
long |
maxDuration()
The maximum length of time that the task can execute
|
boolean |
next()
Move the task to the next iteration
|
public static final long UNLIMITED_DURATION
public long maxDuration()
TimeBudgetmaxDuration in interface TimeBudgetpublic long initialDelay()
BudgetinitialDelay in interface Budgetpublic long interval()
Budgetpublic boolean canContinue()
BudgetcanContinue in interface Budgetpublic boolean next()
Budgetpublic Duration elapsed()
BudgetApache Camel