public abstract class SelfConstraintRetryStrategy extends RetryStrategy
RetryStrategy.WeightAndReliableAdditionBACKOFF_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, shouldRetrypublic SelfConstraintRetryStrategy(int initBackoff,
int maxBackoff,
int baseAttempts)
public long getNextDelay(int attempts)
getNextDelay 在类中 RetryStrategypublic void onTaskEnd(boolean isTaskSuccess,
java.lang.Exception e)
onTaskEnd 在类中 RetryStrategyprotected abstract boolean shouldIncreaseDelay(java.lang.Exception e)
e -