public class StopAfterAttemptStrategy extends Object implements StopStrategy
| 构造器和说明 |
|---|
StopAfterAttemptStrategy(int maxAttemptNumber) |
public boolean shouldStop(Attempt failedAttempt)
StopStrategytrue if the retryer should stop retrying.shouldStop 在接口中 StopStrategyfailedAttempt - the previous failed Attempttrue if the retryer must stop, false otherwiseCopyright © 2019. All rights reserved.