Packages

case class RetryPolicy(termination: TerminationPolicy = RetryPolicy.defaultTermination, backoff: BackoffPolicy = RetryPolicy.defaultBackoff, monitor: EventMonitor = RetryPolicy.defaultMonitor, results: ResultClassifier = RetryPolicy.defaultResults, errors: ErrorClassifier = RetryPolicy.defaultErrors) extends Product with Serializable

A policy that enables customizable retries for arbitrary operations.

termination

The strategy for determining when to abort a retry operation.

backoff

The strategy used to calculate delays between retries.

monitor

The monitor that is notified of retry events.

results

The classifier for results returned during retry operations.

errors

The classifier for errors raised during retry operations.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetryPolicy
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RetryPolicy(termination: TerminationPolicy = RetryPolicy.defaultTermination, backoff: BackoffPolicy = RetryPolicy.defaultBackoff, monitor: EventMonitor = RetryPolicy.defaultMonitor, results: ResultClassifier = RetryPolicy.defaultResults, errors: ErrorClassifier = RetryPolicy.defaultErrors)

    termination

    The strategy for determining when to abort a retry operation.

    backoff

    The strategy used to calculate delays between retries.

    monitor

    The monitor that is notified of retry events.

    results

    The classifier for results returned during retry operations.

    errors

    The classifier for errors raised during retry operations.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val backoff: BackoffPolicy
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val errors: ErrorClassifier
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val monitor: EventMonitor
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. val results: ResultClassifier
  17. def retry[T](name: Option[String])(operation: => T)(implicit clock: Clock): T

    Performs the specified optionally named operation synchronously, retrying according to this policy.

    Performs the specified optionally named operation synchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    name

    The optional name of the operation.

    operation

    The operation to repeatedly perform.

    clock

    The clock used to track time and wait out backoff delays.

  18. def retry[T](name: String)(operation: => T)(implicit clock: Clock): T

    Performs the specified named operation synchronously, retrying according to this policy.

    Performs the specified named operation synchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    name

    The name of the operation.

    operation

    The operation to repeatedly perform.

    clock

    The clock used to track time and wait out backoff delays.

  19. def retry[T]()(operation: => T)(implicit clock: Clock): T

    Performs the specified operation synchronously, retrying according to this policy.

    Performs the specified operation synchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    operation

    The operation to repeatedly perform.

    clock

    The clock used to track time and wait out backoff delays.

  20. def retryAsync[T](name: Option[String])(operation: => Future[T])(implicit ec: ExecutionContext, clock: Clock): Future[T]

    Performs the specified optionally named operation asynchronously, retrying according to this policy.

    Performs the specified optionally named operation asynchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    name

    The optional name of the operation.

    operation

    The operation to repeatedly perform.

    ec

    The execution context to retry on.

    clock

    The clock used to track time and schedule backoff notifications.

  21. def retryAsync[T](name: String)(operation: => Future[T])(implicit ec: ExecutionContext, clock: Clock): Future[T]

    Performs the specified optionally named operation asynchronously, retrying according to this policy.

    Performs the specified optionally named operation asynchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    name

    The name of the operation.

    operation

    The operation to repeatedly perform.

    ec

    The execution context to retry on.

    clock

    The clock used to track time and schedule backoff notifications.

  22. def retryAsync[T]()(operation: => Future[T])(implicit ec: ExecutionContext, clock: Clock): Future[T]

    Performs the specified operation asynchronously, retrying according to this policy.

    Performs the specified operation asynchronously, retrying according to this policy.

    T

    The return type of the operation being retried.

    operation

    The operation to repeatedly perform.

    ec

    The execution context to retry on.

    clock

    The clock used to track time and schedule backoff notifications.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. val termination: TerminationPolicy
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped