case class Retry(count: Int = 5, backoffMillis: Long = 10, backoffMultiplier: Double = 2.0, timeoutMillis: Long = -1, filter: (Int, Throwable) => Boolean = (_, _) => true) extends Product with Serializable
- Source
- Retry.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Retry
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Retry(count: Int = 5, backoffMillis: Long = 10, backoffMultiplier: Double = 2.0, timeoutMillis: Long = -1, filter: (Int, Throwable) => Boolean = (_, _) => true)
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
- def apply[T](t: => T): T
Generic retry functionality
Generic retry functionality
- t
The code block that we want to retry
- returns
the value of evaluating t, or throws an exception if evaluating t fails more than count times
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val backoffMillis: Long
- val backoffMultiplier: Double
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val count: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val filter: (Int, Throwable) => Boolean
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def indexed[T](t: (Int) => T): T
- 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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timeoutMillis: Long
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)