open class FixedBackOff : BackOff
A simple BackOff implementation that provides a fixed interval between two attempts and a maximum number of retries.
Author
Stephane Nicoll
Since
4.1
FixedBackOff()
Create an instance with an interval of {@value #DEFAULT_INTERVAL} ms and an unlimited number of attempts. FixedBackOff(interval: Long, maxAttempts: Long)
Create an instance. |
static val DEFAULT_INTERVAL: Long
The default recovery interval: 5000 ms = 5 seconds. |
|
static val UNLIMITED_ATTEMPTS: Long
Constant value indicating an unlimited number of attempts. |
open fun getInterval(): Long
Return the interval between two attempts in milliseconds. |
|
open fun getMaxAttempts(): Long
Return the maximum number of attempts in milliseconds. |
|
open fun setInterval(interval: Long): Unit
Set the interval between two attempts in milliseconds. |
|
open fun setMaxAttempts(maxAttempts: Long): Unit
Set the maximum number of attempts in milliseconds. |
|
open fun start(): BackOffExecution |