Package org.apache.camel.spi
Interface BackOffTimerFactory
public interface BackOffTimerFactory
Factory for creating
BackOffTimer.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.util.backoff.BackOffTimernewBackOffTimer(String name) Creates a newBackOffTimer.org.apache.camel.util.backoff.BackOffTimernewBackOffTimer(String name, ScheduledExecutorService scheduler) Creates a newBackOffTimerusing the given executor service.
-
Method Details
-
newBackOffTimer
Creates a newBackOffTimer. Important: The timer should be started and stopped to control its lifecycle by usingServiceHelper.- 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 newBackOffTimerusing the given executor service. Important: The timer should be started and stopped to control its lifecycle by usingServiceHelper.- Parameters:
name- logical name of the timerscheduler- thread pool to use for running tasks- Returns:
- new empty backoff timer
-