Packages

package retry

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait BackoffStrategy extends AnyRef

    A strategy to compute a backoff.

  2. final class ConstantBackoffStrategy extends BackoffStrategy

    A strategy that always returns the same backoff.

  3. final class ExponentialBackoffStrategy extends BackoffStrategy

    A strategy to calculate an exponential backoff.

    A strategy to calculate an exponential backoff.

    The formula is as follows. The randomValue value is [1.0, 1.0 + randomFactor].

    minBackoff * (multiplier ^ (trialTimes - 1)) * randomValue

    However, nextDelay returns maxBackoff * randomFactor if the calculated backoff exceeds maxBackoff.

  4. final class RetryFailurewall[A] extends Failurewall[A, A]

    A Failurewall implementing the retry pattern.

    A Failurewall implementing the retry pattern. Calls wrapped in RetryFailurewall can be retried if it fails.

    RetryFailurewall is recommended for resources which may become temporarily unavailable.

  5. sealed abstract class RetryFeedback extends AnyRef

    Whether the call should be retried or not.

Value Members

  1. object ConstantBackoffStrategy
  2. object ExponentialBackoffStrategy
  3. object RetryFailurewall
  4. object ShouldNotRetry extends RetryFeedback with Product with Serializable

    The call should not be retried.

    The call should not be retried. This should be used when the operation is successful or the error is not transient.

    - business logic error - the resource that user requests is not found - a service is under maintenance

  5. object ShouldRetry extends RetryFeedback with Product with Serializable

    The call should be retried.

    The call should be retried. This should be used when the error may be transient.

    - a session is disconnected - a service is temporary unavailable

Ungrouped