Object

retry

RetryPolicies

Related Doc: package retry

Permalink

object RetryPolicies

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetryPolicies
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alwaysGiveUp[M[_]](implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Don't retry at all and always give up.

    Don't retry at all and always give up. Only really useful for combining with other policies.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def capDelay[M[_]](cap: FiniteDuration, policy: RetryPolicy[M])(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Set an upper bound on any individual delay produced by the given policy.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def constantDelay[M[_]](delay: FiniteDuration)(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Delay by a constant amount before each retry.

    Delay by a constant amount before each retry. Never give up.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def exponentialBackoff[M[_]](baseDelay: FiniteDuration)(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Each delay is twice as long as the previous one.

    Each delay is twice as long as the previous one. Never give up.

  12. def fibonacciBackoff[M[_]](baseDelay: FiniteDuration)(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Delay(n) = Delay(n - 2) + Delay(n - 1)

    Delay(n) = Delay(n - 2) + Delay(n - 1)

    e.g. if baseDelay is 10 milliseconds, the delays before each retry will be 10 ms, 10 ms, 20 ms, 30ms, 50ms, 80ms, 130ms, ...

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fullJitter[M[_]](baseDelay: FiniteDuration)(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    "Full jitter" backoff algorithm.

    "Full jitter" backoff algorithm. See https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def limitRetries[M[_]](maxRetries: Int)(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Retry without delay, giving up after the given number of retries.

  19. def limitRetriesByCumulativeDelay[M[_]](threshold: FiniteDuration, policy: RetryPolicy[M])(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Add an upperbound to a policy such that once the cumulative delay over all retries has reached or exceeded the given limit, the policy will stop retrying and give up.

  20. def limitRetriesByDelay[M[_]](threshold: FiniteDuration, policy: RetryPolicy[M])(implicit arg0: Applicative[M]): RetryPolicy[M]

    Permalink

    Add an upper bound to a policy such that once the given time-delay amount per try has been reached or exceeded, the policy will stop retrying and give up.

    Add an upper bound to a policy such that once the given time-delay amount per try has been reached or exceeded, the policy will stop retrying and give up. If you need to stop retrying once cumulative delay reaches a time-delay amount, use limitRetriesByCumulativeDelay.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped