atmos

backoff

package backoff

The atmos.backoff package provides common implementations of the atmos.BackoffPolicy trait.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. backoff
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class ConstantBackoff(backoff: FiniteDuration = defaultBackoff) extends BackoffPolicy with Product with Serializable

    A policy that uses the same backoff after every retry.

  2. case class ExponentialBackoff(initialBackoff: FiniteDuration = defaultBackoff) extends BackoffPolicy with Product with Serializable

    A policy that doubles the backoff duration after every attempt.

    A policy that doubles the backoff duration after every attempt.

    initialBackoff

    The backoff used for the first retry as well as the base for all subsequent retries.

  3. case class FibonacciBackoff(initialBackoff: FiniteDuration = defaultBackoff) extends BackoffPolicy with Product with Serializable

    A policy that increases the initial backoff duration by repeatedly multiplying by an approximation of the golden ratio (8 / 5, the sixth and fifth fibonacci numbers).

    A policy that increases the initial backoff duration by repeatedly multiplying by an approximation of the golden ratio (8 / 5, the sixth and fifth fibonacci numbers).

    initialBackoff

    The backoff used for the first retry as well as the base for all subsequent retries.

  4. case class LinearBackoff(initialBackoff: FiniteDuration = defaultBackoff) extends BackoffPolicy with Product with Serializable

    A policy that increases the backoff duration by the same amount after every retry.

    A policy that increases the backoff duration by the same amount after every retry.

    initialBackoff

    The backoff used for the first retry as well as the base for all subsequent attempts.

  5. case class RandomizedBackoff(policy: BackoffPolicy, range: (FiniteDuration, FiniteDuration)) extends BackoffPolicy with Product with Serializable

    A policy that randomizes the result of another policy by adding a random duration in the specified range.

    A policy that randomizes the result of another policy by adding a random duration in the specified range.

    policy

    The base policy to randomize the result of.

    range

    The range of values that may be used to modify the result of the base policy.

  6. case class SelectedBackoff(f: (Try[Any]) ⇒ BackoffPolicy) extends BackoffPolicy with Product with Serializable

    A policy that delegates to another policy that is selected based on the most recently evaluated outcome.

    A policy that delegates to another policy that is selected based on the most recently evaluated outcome.

    f

    The function that maps from outcomes to backoff policies.

Value Members

  1. val defaultBackoff: FiniteDuration

    The default backoff duration.

Inherited from AnyRef

Inherited from Any

Ungrouped