public class BackOffTimer extends Object
BackOff
to determine when
a task should be executed.Modifier and Type | Class and Description |
---|---|
static interface |
BackOffTimer.Task |
Constructor and Description |
---|
BackOffTimer(ScheduledExecutorService scheduler) |
Modifier and Type | Method and Description |
---|---|
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.
|
public BackOffTimer(ScheduledExecutorService scheduler)
public BackOffTimer.Task schedule(BackOff backOff, ThrowingFunction<BackOffTimer.Task,Boolean,Exception> function)
Apache Camel