| 接口 | 说明 |
|---|---|
| Attempt<V> |
An attempt of a call, which resulted either in a result returned by the call,
or in a Throwable thrown by the call.
|
| AttemptTimeLimiter<V> |
A rule to wrap any single attempt in a time limit, where it will possibly be interrupted if the limit is exceeded.
|
| BlockStrategy |
This is a strategy used to decide how a retryer should block between retry
attempts.
|
| RetryListener |
This listener provides callbacks for several events that occur when running
code through a
Retryer instance. |
| StopStrategy |
A strategy used to decide if a retryer must stop retrying after a failed attempt or not.
|
| TimeLimiter |
Imposes a time limit on method calls.
|
| WaitStrategy |
A strategy used to decide how long to sleep before retrying after a failed attempt.
|
| 类 | 说明 |
|---|---|
| AttemptTimeLimiters |
Factory class for instances of
AttemptTimeLimiter |
| BlockStrategies |
Factory class for
BlockStrategy instances. |
| Retryer<V> |
A retryer, which executes a call, and retries it until it succeeds, or
a stop strategy decides to stop retrying.
|
| Retryer.RetryerCallable<X> | |
| RetryerBuilder<V> |
A builder used to configure and create a
Retryer. |
| SimpleTimeLimiter |
A TimeLimiter that runs method calls in the background using an
ExecutorService. |
| StopStrategies |
Factory class for
StopStrategy instances. |
| WaitStrategies |
Factory class for instances of
WaitStrategy. |
| 异常错误 | 说明 |
|---|---|
| RetryException |
An exception indicating that none of the attempts of the
Retryer
succeeded. |
Copyright © 2023. All rights reserved.