object
Retry
Type Members
-
-
-
case class
MaxRetryException(retryState: RetryContext[_]) extends Exception with Product with Serializable
-
case class
RetryConfig(initialIntervalMillis: Int = 100, maxIntervalMillis: Int = 15000, multiplier: Double = 1.5) extends Product with Serializable
-
case class
RetryContext[C](context: Option[C], lastError: Throwable, retryCount: Int, maxRetry: Int, nextWaitMillis: Int) extends Product with Serializable
-
-
case class
Retryer[C](context: Option[C] = None, maxRetry: Int, retryWaitStrategy: RetryWaitStrategy, errorHandler: (RetryContext[C]) ⇒ Any = RETRY_ALL) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withBackOff[C](maxRetry: Int = 3, initialIntervalMillis: Int = 100, maxIntervalMillis: Int = 15000, multiplier: Double = 1.5): Retryer[C]
-
def
withJitter[C](maxRetry: Int = 3, initialIntervalMillis: Int = 100, maxIntervalMillis: Int = 15000, multiplier: Double = 1.5): Retryer[C]
-
def
withRetry[C](maxRetry: Int = 3, retryWaitStrategy: RetryWaitStrategy): Retryer[C]
Inherited from AnyRef
Inherited from Any
Retry logic implementation helper