The atmos package aims to provide a concise mechanism for implementing retry-on-failure behavior.
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:
atmos.ResultClassifier: Defines what results are acceptable for a retry operation to return.
atmos.ErrorClassifier: Defines when a retry operation should be interrupted by a fatal error.
atmos.BackoffPolicy: Defines how long to wait between successive retry attempts. The atmos.backoff
package provides a number of common backoff policy implementations.
atmos.EventMonitor: An interface that is notified of events during a retry operation. The atmos.monitor
package provides a number of common event monitor implementations.
atmos.TerminationPolicy: Defines when a retry operation should abort and make no further attempts. The
atmos.termination package provides a number of common termination policy implementations.
Additionally, the atmos.dsl package provides a concise DSL for describing retry policies.
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