class FailoverStrategy extends Product3[FiniteDuration, Int, (Int) => Double] with Serializable
A failover strategy for sending requests. The default uses 10 retries: 125ms, 250ms, 375ms, 500ms, 625ms, 750ms, 875ms, 1s, 1125ms, 1250ms
import scala.concurrent.duration._ reactivemongo.api.FailoverStrategy( initialDelay = 150.milliseconds, retries = 20, delayFactor = { `try` => `try` * 1.5D })
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FailoverStrategy
- Serializable
- Product3
- Product
- Equals
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toany2stringadd[FailoverStrategy] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (FailoverStrategy, B)
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toArrowAssoc[FailoverStrategy] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- 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() @HotSpotIntrinsicCandidate()
- val delayFactor: (Int) => Double
- def ensuring(cond: (FailoverStrategy) => Boolean, msg: => Any): FailoverStrategy
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toEnsuring[FailoverStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (FailoverStrategy) => Boolean): FailoverStrategy
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toEnsuring[FailoverStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): FailoverStrategy
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toEnsuring[FailoverStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): FailoverStrategy
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toEnsuring[FailoverStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toStringFormat[FailoverStrategy] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val initialDelay: FiniteDuration
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productArity: Int
- Definition Classes
- Product3 → Product
- def productElement(n: Int): Any
- Definition Classes
- Product3 → Product
- Annotations
- @throws(classOf[java.lang.IndexOutOfBoundsException])
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- val retries: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Deprecated Value Members
- def _1: FiniteDuration
- Definition Classes
- FailoverStrategy → Product3
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 0.20.3) No longer a case class
- def _2: Int
- Definition Classes
- FailoverStrategy → Product3
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 0.20.3) No longer a case class
- def _3: (Int) => Double
- Definition Classes
- FailoverStrategy → Product3
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 0.20.3) No longer a case class
- def canEqual(that: Any): Boolean
- Definition Classes
- FailoverStrategy → Equals
- Annotations
- @deprecated
- Deprecated
(Since version 0.20.3) No longer a case class
- def copy(initialDelay: FiniteDuration = this.initialDelay, retries: Int = this.retries, delayFactor: (Int) => Double = delayFactor): FailoverStrategy
- Annotations
- @deprecated
- Deprecated
(Since version 0.20.3) No longer a case class
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (FailoverStrategy, B)
- Implicit
- This member is added by an implicit conversion from FailoverStrategy toArrowAssoc[FailoverStrategy] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.