Package

com.github.takezoe

retry

Permalink

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. All

Type Members

  1. sealed trait BackOff extends Serializable

    Permalink
  2. case class CircuitBreakerContext(state: State = Close, failureCount: Int = 0, successCount: Int = 0, lastFailure: Option[FailureInfo] = None) extends Product with Serializable

    Permalink
  3. class CircuitBreakerPolicy extends AnyRef

    Permalink
  4. case class FailureInfo(timestampMillis: Long, exception: Throwable) extends Product with Serializable

    Permalink
  5. case class RetryContext(retryCount: Int, exception: Throwable) extends Product with Serializable

    Permalink
  6. class RetryManager extends AnyRef

    Permalink
  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

    Permalink

Value Members

  1. object CircuitBreakerPolicy

    Permalink
  2. object ExponentialBackOff extends BackOff

    Permalink
  3. object FixedBackOff extends BackOff

    Permalink
  4. object LinerBackOff extends BackOff

    Permalink
  5. object RetryPolicy extends Serializable

    Permalink
  6. def circuitBreaker[T](f: ⇒ T)(implicit policy: CircuitBreakerPolicy): T

    Permalink
  7. def circuitBreakerAsEither[T](f: ⇒ T)(implicit policy: CircuitBreakerPolicy): Either[Throwable, T]

    Permalink
  8. def circuitBreakerAsTry[T](f: ⇒ T)(implicit policy: CircuitBreakerPolicy): Try[T]

    Permalink
  9. def retry[T](f: ⇒ T)(implicit policy: RetryPolicy): T

    Permalink
  10. def retryAsEither[T](f: ⇒ T)(implicit policy: RetryPolicy): Either[Throwable, T]

    Permalink
  11. def retryBlockingAsTry[T](f: ⇒ T)(implicit policy: RetryPolicy): Try[T]

    Permalink
  12. def retryFuture[T](f: ⇒ Future[T])(implicit policy: RetryPolicy, retryManager: RetryManager, ec: ExecutionContext): Future[T]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped