Retry
wvlet.airframe.control.Retry
object Retry extends LogSupport
Retry logic implementation helper
Attributes
- Graph
-
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
Retry.type
Members list
Type members
Classlikes
class ExponentialBackOff(val retryPolicyConfig: RetryPolicyConfig) extends RetryPolicy
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
class Jitter(val retryPolicyConfig: RetryPolicyConfig, rand: Random) extends RetryPolicy
Attributes
- Supertypes
case class MaxRetryException(retryContext: RetryContext) extends Exception
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
case object NOT_STARTED extends Exception
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
NOT_STARTED.type
case class RetryContext(context: Option[Any], lastError: Throwable, retryCount: Int, maxRetry: Int, retryWaitStrategy: RetryPolicy, nextWaitMillis: Int, baseWaitMillis: Int, extraWaitMillis: Int, resultClassifier: Any => ResultClass, errorClassifier: Throwable => Failed, beforeRetryAction: RetryContext => Any)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait RetryPolicy
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ExponentialBackOffclass Jitter
case class RetryPolicyConfig(initialIntervalMillis: Int, maxIntervalMillis: Int, multiplier: Double)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class RetryableFailure(e: Throwable) extends Exception
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
def withBackOff(maxRetry: Int, initialIntervalMillis: Int, maxIntervalMillis: Int, multiplier: Double): RetryContext
def withBoundedBackoff(initialIntervalMillis: Int, maxTotalWaitMillis: Int, multiplier: Double): RetryContext
def withJitter(maxRetry: Int, initialIntervalMillis: Int, maxIntervalMillis: Int, multiplier: Double): RetryContext
Inherited methods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
In this article