Delay

gears.async.Retry.Delay
See theDelay companion object
trait Delay

Defines a delay policy based on the number of successive failures and the duration of the last delay. See Delay companion object for some provided delay policies.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def delayFor(failuresCount: Int, lastDelay: FiniteDuration): FiniteDuration

Return the expected duration to delay the next attempt from the current attempt.

Return the expected duration to delay the next attempt from the current attempt.

Value parameters

failuresCount

The number of successive failures until the current attempt. Note that if the last attempt was a success, failuresCount is 0.

lastDelay

The duration of the last delay.

Attributes