public abstract class SelfConstraintRetryStrategy extends RetryStrategy
RetryStrategy.WeightAndReliableAddition
BACKOFF_MULTIPLIER, baseAttempts, DEFAULT, FAIL_FAST, initBackoff, maxBackoff
构造器和说明 |
---|
SelfConstraintRetryStrategy(int initBackoff,
int maxBackoff,
int baseAttempts) |
限定符和类型 | 方法和说明 |
---|---|
long |
getNextDelay(int attempts) |
void |
onTaskEnd(boolean isTaskSuccess,
java.lang.Exception e) |
protected abstract boolean |
shouldIncreaseDelay(java.lang.Exception e)
是否应该增加重试间隔
|
getQCloudHttpRetryHandler, setRetryHandler, shouldRetry
public SelfConstraintRetryStrategy(int initBackoff, int maxBackoff, int baseAttempts)
public long getNextDelay(int attempts)
getNextDelay
在类中 RetryStrategy
public void onTaskEnd(boolean isTaskSuccess, java.lang.Exception e)
onTaskEnd
在类中 RetryStrategy
protected abstract boolean shouldIncreaseDelay(java.lang.Exception e)
e
-