Packages

package retry

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. retry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait BackOff extends Serializable
  2. case class CircuitBreakerContext(state: State = Close, failureCount: Int = 0, successCount: Int = 0, lastFailure: Option[FailureInfo] = None) extends Product with Serializable
  3. class CircuitBreakerPolicy extends AnyRef
  4. case class FailureInfo(timestampMillis: Long, exception: Throwable) extends Product with Serializable
  5. case class RetryContext(retryCount: Int, exception: Throwable) extends Product with Serializable
  6. class RetryManager extends AnyRef
  7. case class RetryPolicy(maxAttempts: Int, retryDuration: FiniteDuration, backOff: BackOff = FixedBackOff, jitter: FiniteDuration = 0.second, onRetry: (RetryContext) => Unit = _ => (), onFailure: (RetryContext) => Unit = _ => ()) extends Product with Serializable

Value Members

  1. def circuitBreaker[T](f: => T)(implicit policy: CircuitBreakerPolicy): T
  2. def circuitBreakerAsEither[T](f: => T)(implicit policy: CircuitBreakerPolicy): Either[Throwable, T]
  3. def circuitBreakerAsTry[T](f: => T)(implicit policy: CircuitBreakerPolicy): Try[T]
  4. def retry[T](f: => T)(implicit policy: RetryPolicy): T
  5. def retryAsEither[T](f: => T)(implicit policy: RetryPolicy): Either[Throwable, T]
  6. def retryBlockingAsTry[T](f: => T)(implicit policy: RetryPolicy): Try[T]
  7. def retryFuture[T](f: => Future[T])(implicit policy: RetryPolicy, retryManager: RetryManager, ec: ExecutionContext): Future[T]
  8. object CircuitBreakerPolicy
  9. object ExponentialBackOff extends BackOff
  10. object FixedBackOff extends BackOff
  11. object LinerBackOff extends BackOff
  12. object RetryPolicy extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped