atmos

RetryPolicy

Related Docs: object RetryPolicy | package atmos

case class RetryPolicy(termination: TerminationPolicy = RetryPolicy.defaultTermination, backoff: BackoffPolicy = RetryPolicy.defaultBackoff, monitor: EventMonitor = RetryPolicy.defaultMonitor, classifier: ErrorClassifier = RetryPolicy.defaultErrors, 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.

classifier

The classifier for errors raised during retry operations. This field is deprecated and will be used as a fallback for the errors classifier, which should be used instead.

results

The classifier for results returned during retry operations.

errors

The classifier for errors raised during retry operations.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RetryPolicy
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RetryPolicy(termination: TerminationPolicy = RetryPolicy.defaultTermination, backoff: BackoffPolicy = RetryPolicy.defaultBackoff, monitor: EventMonitor = RetryPolicy.defaultMonitor, classifier: ErrorClassifier = RetryPolicy.defaultErrors, 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.

    classifier

    The classifier for errors raised during retry operations. This field is deprecated and will be used as a fallback for the errors classifier, which should be used instead.

    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

    The strategy used to calculate delays between retries.

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. val errors: ErrorClassifier

    The classifier for errors raised during retry operations.

  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. val monitor: EventMonitor

    The monitor that is notified of retry events.

  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. val results: ResultClassifier

    The classifier for results returned during retry operations.

  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

    The strategy for determining when to abort a retry operation.

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. val classifier: ErrorClassifier

    The classifier for errors raised during retry operations.

    The classifier for errors raised during retry operations. This field is deprecated and will be used as a fallback for the errors classifier, which should be used instead.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.1) Use errors instead of classifier.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped