| 接口 | 说明 |
|---|---|
| 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<V> |
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.
|
| WaitStrategy |
A strategy used to decide how long to sleep before retrying after a failed attempt.
|
| 类 | 说明 |
|---|---|
| AsyncRetryer<V> |
Created on 2018/2/11
|
| AttemptTimeLimiters |
Factory class for instances of
AttemptTimeLimiter |
| BlockStrategies |
Factory class for
BlockStrategy instances. |
| ExecutorsUtil |
Created on 2018/2/11
|
| Preconditions |
extract from: git@github.com:google/guava.git
|
| 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. |
| 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 © 2018. All rights reserved.