public abstract class AbstractRetryStrategy extends Object implements RetryStrategy
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasNextAttempt |
protected int |
totalTimes |
| Constructor and Description |
|---|
AbstractRetryStrategy(int totalTimes,
boolean hasNextAttempt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNextAttempt()
Return the next attempt should execute or not.
|
void |
stopFollowingAttempts()
Stop the following attempts when test succeed or failed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleExceptionprotected final int totalTimes
protected boolean hasNextAttempt
public AbstractRetryStrategy(int totalTimes,
boolean hasNextAttempt)
public boolean hasNextAttempt()
RetryStrategyhasNextAttempt in interface RetryStrategypublic void stopFollowingAttempts()
RetryStrategystopFollowingAttempts in interface RetryStrategyCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.