Package com.github.rbuck.retry

This package contains the core retry framework classes; this page provides descriptions for the core classes, the key concepts, etc.

See: Description

Package com.github.rbuck.retry Description

This package contains the core retry framework classes; this page provides descriptions for the core classes, the key concepts, etc.

There are four primary components to the retry framework:

Transient Exception Detectors

Detectors distinguish transient exceptions from non-transient exceptions. Transient exceptions are those that are retryable; non-transient exceptions are those that, no matter how many times you retry, will invariantly yield the same exceptions.

Examples of transient exceptions are socket closed, lock conflicts, etc. Examples of non-transient exceptions are syntax errors.

Retry Strategies

Retry strategies are algorithms that govern the behavior related to the the application of retry, the amount of time between retries, whether or how retry intervals change duration for each subsequent retry, etc.

There are several retry strategies available:

Retry Policies

The framework can be easily extended to support retry for arbitrary use cases, such as for database, and communications. Out of the box the framework provides two retry policies, a generic retry Policy applicable to communications and similar patterns, then a SqlRetryPolicy applicable to JDBC usage scenarios.

Copyright © 2015. All rights reserved.