Interface TimeBudget

All Superinterfaces:
Budget
All Known Implementing Classes:
IterationTimeBoundedBudget, TimeBoundedBudget

public interface TimeBudget extends Budget
Defines a budget that limits the task execution to certain length of time
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The maximum length of time that the task can execute

    Methods inherited from interface org.apache.camel.support.task.budget.Budget

    canContinue, elapsed, initialDelay, interval, next
  • Method Details

    • maxDuration

      long maxDuration()
      The maximum length of time that the task can execute
      Returns:
      the length of time in milliseconds