object Retry
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Retry
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
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
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.
-
case class
Immediate
(retriesLeft: Int, filter: (Throwable) ⇒ Boolean = always) extends RetryPolicy with Product with Serializable
Retries a max of
retriesLefttimes immediately following a failure.Retries a max of
retriesLefttimes immediately following a failure.- retriesLeft
Number of retries
- filter
A filter to check if the cause of failure should prevent retrying.
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(retries: Int, delay: FiniteDuration, exp: Double)(implicit runner: RunAfter, ec: ExecutionContext): Backoff
- def apply(retries: Int, delay: FiniteDuration)(implicit runner: RunAfter, ec: ExecutionContext): Backoff
- def apply(retries: Int): Immediate
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
-
object
None
extends RetryPolicy with Product with Serializable
Default retry policy that never retries.