public static interface BackOffTimer.Task
Modifier and Type | Interface and Description |
---|---|
static class |
BackOffTimer.Task.Status |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the task.
|
BackOff |
getBackOff()
The back-off associated with this task.
|
long |
getCurrentAttempts()
The number of attempts so far.
|
long |
getCurrentDelay()
The current computed delay.
|
long |
getCurrentElapsedTime()
The current elapsed time.
|
long |
getLastAttemptTime()
The time the last attempt has been performed.
|
long |
getNextAttemptTime()
An indication about the time the next attempt will be made.
|
BackOffTimer.Task.Status |
getStatus()
Gets the task status.
|
void |
reset()
Reset the task.
|
void |
whenComplete(BiConsumer<BackOffTimer.Task,Throwable> whenCompleted)
Action to execute when the context is completed (cancelled or exhausted)
|
BackOff getBackOff()
BackOffTimer.Task.Status getStatus()
long getCurrentAttempts()
long getCurrentDelay()
long getCurrentElapsedTime()
long getLastAttemptTime()
long getNextAttemptTime()
void reset()
void cancel()
void whenComplete(BiConsumer<BackOffTimer.Task,Throwable> whenCompleted)
whenCompleted
- the consumer.Apache Camel