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, wait
handleException
protected final int totalTimes
protected boolean hasNextAttempt
public AbstractRetryStrategy(int totalTimes, boolean hasNextAttempt)
public boolean hasNextAttempt()
RetryStrategy
hasNextAttempt
in interface RetryStrategy
public void stopFollowingAttempts()
RetryStrategy
stopFollowingAttempts
in interface RetryStrategy
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.