Package org.apache.camel.util.backoff
Class BackOffTimer
java.lang.Object
org.apache.camel.util.backoff.BackOffTimer
A simple timer utility that use a linked
BackOff
to determine when a task should be executed.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionschedule
(BackOff backOff, ThrowingFunction<BackOffTimer.Task, Boolean, Exception> function) Schedule the given function/task to be executed some time in the future according to the given backOff.
-
Constructor Details
-
BackOffTimer
-
-
Method Details
-
schedule
public BackOffTimer.Task schedule(BackOff backOff, ThrowingFunction<BackOffTimer.Task, Boolean, Exception> function) Schedule the given function/task to be executed some time in the future according to the given backOff.
-