Object

diode.util

Retry

Related Doc: package util

Permalink

object Retry

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Retry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. case class Backoff(retriesLeft: Int, delay: FiniteDuration, exp: Double = 2.0, filter: (Throwable) ⇒ Boolean = always)(implicit runner: RunAfter, ec: ExecutionContext) extends RetryPolicy with Product with Serializable

    Permalink

    Provides an exponential backoff algorithm for retrying.

    Provides an exponential backoff algorithm for retrying.

    retriesLeft

    Number of retries

    delay

    Delay after failure before trying again. Grows on each retry to prevDelay * exp

    exp

    Exponential growth factor for delay. Default is 2.0 leading to delay doubling on every retry.

    filter

    A filter to check if the cause of failure should prevent retrying.

  2. case class Immediate(retriesLeft: Int, filter: (Throwable) ⇒ Boolean = always) extends RetryPolicy with Product with Serializable

    Permalink

    Retries a max of retriesLeft times immediately following a failure.

    Retries a max of retriesLeft times immediately following a failure.

    retriesLeft

    Number of retries

    filter

    A filter to check if the cause of failure should prevent retrying.

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. object None extends RetryPolicy with Product with Serializable

    Permalink

    Default retry policy that never retries.

  5. def apply(retries: Int, delay: FiniteDuration, exp: Double)(implicit runner: RunAfter, ec: ExecutionContext): Backoff

    Permalink
  6. def apply(retries: Int, delay: FiniteDuration)(implicit runner: RunAfter, ec: ExecutionContext): Backoff

    Permalink
  7. def apply(retries: Int): Immediate

    Permalink
  8. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped