| 程序包 | 说明 |
|---|---|
| cn.aotcloud.retry |
| 限定符和类型 | 方法和说明 |
|---|---|
static <V> AttemptTimeLimiter<V> |
AttemptTimeLimiters.fixedTimeLimit(long duration,
TimeUnit timeUnit)
For control over thread management, it is preferable to offer an
ExecutorService through the other
factory method, AttemptTimeLimiters.fixedTimeLimit(long, TimeUnit, ExecutorService). |
static <V> AttemptTimeLimiter<V> |
AttemptTimeLimiters.fixedTimeLimit(long duration,
TimeUnit timeUnit,
ExecutorService executorService) |
static <V> AttemptTimeLimiter<V> |
AttemptTimeLimiters.noTimeLimit() |
| 限定符和类型 | 方法和说明 |
|---|---|
RetryerBuilder<V> |
RetryerBuilder.withAttemptTimeLimiter(AttemptTimeLimiter<V> attemptTimeLimiter)
Configures the retryer to limit the duration of any particular attempt by the given duration.
|
| 构造器和说明 |
|---|
Retryer(AttemptTimeLimiter<V> attemptTimeLimiter,
StopStrategy stopStrategy,
WaitStrategy waitStrategy,
BlockStrategy blockStrategy,
com.google.common.base.Predicate<Attempt<V>> rejectionPredicate)
Constructor
|
Retryer(AttemptTimeLimiter<V> attemptTimeLimiter,
StopStrategy stopStrategy,
WaitStrategy waitStrategy,
BlockStrategy blockStrategy,
com.google.common.base.Predicate<Attempt<V>> rejectionPredicate,
Collection<RetryListener> listeners)
Constructor
|
Retryer(AttemptTimeLimiter<V> attemptTimeLimiter,
StopStrategy stopStrategy,
WaitStrategy waitStrategy,
com.google.common.base.Predicate<Attempt<V>> rejectionPredicate)
Constructor
|
Copyright © 2023. All rights reserved.