object RetryStrategy
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RetryStrategy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed abstract class FailedRetryException extends RetryStrategyException
- sealed abstract class RetryStrategyException extends RuntimeException
- final case class TooManyAttemptsException(attempts: Int, duration: FiniteDuration, message: String, cause: Throwable) extends FailedRetryException with Product with Serializable
- final case class UnhandledFailureException(duration: FiniteDuration, message: String, cause: Throwable) extends FailedRetryException with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def constant(attempts: Option[Int] = None, waitTime: Duration)(predicate: PartialFunction[Throwable, Boolean]): RetryStrategy
Retry with constant wait time, but only if the exception satisfies a predicate
- def constant(attempts: Int, waitTime: Duration): RetryStrategy
Retry a fixed amount of times with constant wait time, regardless of the exception thrown
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exponentialBackoff(attempts: Int, firstWaitTime: Duration): RetryStrategy
Retry a fixed amount of times with exponential backoff, regardless of the exception thrown
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object FailedRetryException extends Serializable
- case object ZeroAttemptsException extends RetryStrategyException with Product with Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated