Interface BackOffTimerFactory


public interface BackOffTimerFactory
Factory for creating BackOffTimer.
See Also:
  • BackOff
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.util.backoff.BackOffTimer
    Creates a new BackOffTimer.
    org.apache.camel.util.backoff.BackOffTimer
    Creates a new BackOffTimer using the given executor service.
  • Method Details

    • newBackOffTimer

      org.apache.camel.util.backoff.BackOffTimer newBackOffTimer(String name)
      Creates a new BackOffTimer. Important: The timer should be started and stopped to control its lifecycle by using ServiceHelper.
      Parameters:
      name - logical name of the timer
      Returns:
      new empty backoff timer
    • newBackOffTimer

      org.apache.camel.util.backoff.BackOffTimer newBackOffTimer(String name, ScheduledExecutorService scheduler)
      Creates a new BackOffTimer using the given executor service. Important: The timer should be started and stopped to control its lifecycle by using ServiceHelper.
      Parameters:
      name - logical name of the timer
      scheduler - thread pool to use for running tasks
      Returns:
      new empty backoff timer