final class FailoverStrategy extends AnyRef
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
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
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 to any2stringadd[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 to ArrowAssoc[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( ... ) @native()
-
def
copy(initialDelay: FiniteDuration = _initialDelay, retries: Int = _retries, delayFactor: (Int) ⇒ Double = _delayFactor): FailoverStrategy
- Annotations
- @SuppressWarnings()
-
def
delayFactor: (Int) ⇒ Double
The function that takes the current iteration, and returns a factor to be applied to the initialDelay (default: FailoverStrategy.defaultFactor; See FailoverStrategy.FactorFun)
The function that takes the current iteration, and returns a factor to be applied to the initialDelay (default: FailoverStrategy.defaultFactor; See FailoverStrategy.FactorFun)
- Annotations
- @inline()
-
def
ensuring(cond: (FailoverStrategy) ⇒ Boolean, msg: ⇒ Any): FailoverStrategy
- Implicit
- This member is added by an implicit conversion from FailoverStrategy to Ensuring[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 to Ensuring[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 to Ensuring[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 to Ensuring[FailoverStrategy] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from FailoverStrategy to StringFormat[FailoverStrategy] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initialDelay: FiniteDuration
The initial delay between the first failed attempt and the next one
The initial delay between the first failed attempt and the next one
- Annotations
- @inline()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
retries: Int
The number of retries to do before giving up
The number of retries to do before giving up
- Annotations
- @inline()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (FailoverStrategy, B)
- Implicit
- This member is added by an implicit conversion from FailoverStrategy to ArrowAssoc[FailoverStrategy] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc