atmos

package atmos

The atmos package aims to provide a concise mechanism for implementing retry-on-failure behavior.

Retry behavior is controlled by an instance of atmos.RetryPolicy configured with strategies for various components of the retry operation. The elements that define a retry policy are:

Additionally, the atmos.dsl package provides a concise DSL for describing retry policies.

For more information about using the atmos library, see http://zman.io/atmos

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. atmos
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait BackoffPolicy extends AnyRef

    A strategy for computing a sequence of wait durations for use between retry attempts.

  2. sealed trait ErrorClassification extends AnyRef

    Base type for error classifications.

  3. type ErrorClassifier = PartialFunction[Throwable, ErrorClassification]

    The type of error classifier functions.

  4. trait EventMonitor extends AnyRef

    A monitor that is notified of events that occur while a retry operation is in progress.

  5. sealed trait ResultClassification extends AnyRef

    Base type for result classifications.

  6. type ResultClassifier = PartialFunction[Any, ResultClassification]

    The type of result classifier functions.

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

    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.

  8. trait TerminationPolicy extends AnyRef

    Strategy for determining when to abort a retry operation.

Value Members

  1. object ErrorClassification extends (Throwable) ⇒ ErrorClassification

    Definitions of the supported error classifications and the default classification function.

  2. object ErrorClassifier

    Common error classifiers.

  3. object ResultClassification extends (Any) ⇒ ResultClassification

    Definitions of the supported result classifications and the default classification function.

  4. object ResultClassifier

    Common result classifiers.

  5. object RetryPolicy extends Serializable

    Factory for retry policies.

  6. package backoff

    The atmos.backoff package provides common implementations of the atmos.BackoffPolicy trait.

  7. package dsl

    The atmos.dsl package defines a domain specific language for constructing and using retry policies.

  8. package monitor

    The atmos.monitor package provides common implementations of the atmos.EventMonitor trait.

  9. package termination

    The atmos.termination package provides common implementations of the atmos.TerminationPolicy trait.

Inherited from AnyRef

Inherited from Any

Ungrouped