| 程序包 | 说明 |
|---|---|
| com.github.lowzj.retry |
| 限定符和类型 | 方法和说明 |
|---|---|
static StopStrategy |
StopStrategies.neverStop()
Returns a stop strategy which never stops retrying.
|
static StopStrategy |
StopStrategies.stopAfterAttempt(int attemptNumber)
Returns a stop strategy which stops after N failed attempts.
|
static StopStrategy |
StopStrategies.stopAfterDelay(long duration,
TimeUnit timeUnit)
Returns a stop strategy which stops after a given delay.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RetryerBuilder<V> |
RetryerBuilder.withStopStrategy(StopStrategy stopStrategy)
Sets the stop strategy used to decide when to stop retrying.
|
Copyright © 2018. All rights reserved.