trait RetryStrategy extends AnyRef
A RetryStrategy
is conceptually a lazy sequence of delays, possibly infinite.
- Self Type
- RetryStrategy
- Alphabetic
- By Inheritance
- RetryStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
nextRetry: commons.Opt[(FiniteDuration, RetryStrategy)]
Determines a delay that will be waited before retrying some operation that failed (e.g.
Determines a delay that will be waited before retrying some operation that failed (e.g. Redis connection attempt) and also returns next retry strategy that should be used if that retry itself also fails. If this method returns
Opt.Empty
, the operation will not be retried and failure should be reported.
Concrete 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
andThen(otherStrategy: RetryStrategy): RetryStrategy
Concatenates two retry strategies, understood as lazy sequences of delays.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @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
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxDelay(duration: FiniteDuration): RetryStrategy
Limits the maximum delay between retries to some specified duration.
-
def
maxRetries(retries: Int): RetryStrategy
Limits the maximum number of retries to some specified number.
-
def
maxTotal(duration: FiniteDuration): RetryStrategy
Limits the maximum total duration (sum of retry delays) to some specified duration.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def next: RetryStrategy
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
randomized(minFactor: Double, maxFactor: Double): RetryStrategy
Randomizes delays.
Randomizes delays. Each delay is multiplied by a factor which is randomly and uniformly choosen from specified segment
[minFactor, maxFactor)
(e.g. 0.9 to 1.1) -
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
- @native() @throws( ... )