| 程序包 | 说明 |
|---|---|
| cn.aotcloud.retry |
| 限定符和类型 | 方法和说明 |
|---|---|
static BlockStrategy |
BlockStrategies.threadSleepStrategy()
Returns a block strategy that puts the current thread to sleep between
retries.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RetryerBuilder<V> |
RetryerBuilder.withBlockStrategy(BlockStrategy blockStrategy)
Sets the block strategy used to decide how to block between retry attempts.
|
| 构造器和说明 |
|---|
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
|
Copyright © 2023. All rights reserved.