| 程序包 | 说明 |
|---|---|
| com.dyngr.core | |
| com.dyngr.core.strategy |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultAttempt
Default implementation of
Attempt. |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
WaitStrategy.computeWaitTime(Attempt failedAttempt)
Returns the time, in milliseconds, to sleep before retrying.
|
boolean |
StopStrategy.shouldStop(Attempt failedAttempt)
Returns
true if the retryer should stop retrying. |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
NeverStopStrategy.shouldStop(Attempt failedAttempt) |
boolean |
StopAfterAttemptStrategy.shouldStop(Attempt failedAttempt) |
boolean |
StopIfExceptionStrategy.shouldStop(Attempt failedAttempt) |
boolean |
CompositeStopStrategy.shouldStop(Attempt failedAttempt) |
boolean |
StopAfterDelayStrategy.shouldStop(Attempt failedAttempt) |
Copyright © 2019. All rights reserved.