object
Retry
Type Members
-
-
-
case class
LastError(lastError: Throwable, retryCount: Int, maxRetry: Int, nextWaitMillis: Int) extends Product with Serializable
-
case class
MaxRetryException(retryState: LastError) 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
Retryer(maxRetry: Int, retryWaitStrategy: RetryWaitStrategy, handler: (LastError) ⇒ 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(maxRetry: Int = 3, initialIntervalMillis: Int = 100, maxIntervalMillis: Int = 15000, multiplier: Double = 1.5): Retryer
-
def
withJitter(maxRetry: Int = 3, initialIntervalMillis: Int = 100, maxIntervalMillis: Int = 15000, multiplier: Double = 1.5): Retryer
-
def
withRetry(maxRetry: Int = 3, retryWaitStrategy: RetryWaitStrategy): Retryer
Inherited from AnyRef
Inherited from Any