Trait/Object

com.avsystem.commons.redis.config

RetryStrategy

Related Docs: object RetryStrategy | package config

Permalink

trait RetryStrategy extends AnyRef

A RetryStrategy is conceptually a lazy sequence of delays, possibly infinite.

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

Abstract Value Members

  1. abstract def nextRetry: commons.Opt[(FiniteDuration, RetryStrategy)]

    Permalink

    Determines a delay that will be waited before retrying some operation that failed (e.g.

    Determines a delay that will be waited before retrying some operation that failed (e.g. Redis connection attempt) and also returns next retry strategy that should be used if that retry itself also fails. If this method returns Opt.Empty, the operation will not be retried and failure should be reported.

Concrete 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 andThen(otherStrategy: RetryStrategy): RetryStrategy

    Permalink

    Concatenates two retry strategies, understood as lazy sequences of delays.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  13. def maxDelay(duration: FiniteDuration): RetryStrategy

    Permalink

    Limits the maximum delay between retries to some specified duration.

  14. def maxRetries(retries: Int): RetryStrategy

    Permalink

    Limits the maximum number of retries to some specified number.

  15. def maxTotal(duration: FiniteDuration): RetryStrategy

    Permalink

    Limits the maximum total duration (sum of retry delays) to some specified duration.

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

    Permalink
    Definition Classes
    AnyRef
  17. def next: RetryStrategy

    Permalink
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def randomized(minFactor: Double, maxFactor: Double): RetryStrategy

    Permalink

    Randomizes delays.

    Randomizes delays. Each delay is multiplied by a factor which is randomly and uniformly choosen from specified segment [minFactor, maxFactor) (e.g. 0.9 to 1.1)

  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped