p

util.retry

blocking

package blocking

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. final case class Failure [+T](exception: Throwable) extends Retry[T] with Product with Serializable
  2. class FibonacciBackOffStrategy extends MaxNumberOfRetriesStrategy with Sleep
  3. class FixedWaitRetryStrategy extends MaxNumberOfRetriesStrategy with Sleep
  4. class MaxNumberOfRetriesStrategy extends RetryStrategy
  5. class RandomWaitRetryStrategy extends MaxNumberOfRetriesStrategy with Sleep
  6. sealed trait Retry [+T] extends AnyRef

    The Retry type represents a computation that is retrying itself in case of an exception.

    The Retry type represents a computation that is retrying itself in case of an exception. It uses a RetryStrategy as a policy for the retry operation.

    The result may be successful consisting of the computation result value or a failure that is wrapping the underlying exception. The type is similar to the scala scala.util.Try type.

    Example:

    import scala.concurrent.duration._
    import util.retry.blocking.{RetryStrategy, Failure, Retry, Success}
    
    implicit val retryStrategy =
     RetryStrategy.fixedBackOff(retryDuration = 1.seconds, maxAttempts = 2)
    
    val r = Retry(1 / 1) match {
      case Success(x) => println(x)
      case Failure(t) => println(t)
    }
  7. sealed trait RetryStrategy extends AnyRef

    Interface defining a retry strategy

  8. sealed trait Sleep extends AnyRef
  9. final case class Success [+T](value: T) extends Retry[T] with Product with Serializable

Value Members

  1. object NoRetry extends RetryStrategy

    Simplest retry strategy that performs retry

  2. object Retry
  3. object RetryStrategy

Ungrouped