类 AbstractRetryStrategies
java.lang.Object
com.aizuda.easy.retry.client.core.strategy.AbstractRetryStrategies
- 所有已实现的接口:
RetryStrategy
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract CallabledoGetCallable(RetryExecutor<com.github.rholder.retry.WaitStrategy, com.github.rholder.retry.StopStrategy> retryExecutor, Object[] params) doGetRetryErrorConsumer(RetryerInfo retryerInfo, Object[] params) protected booleandoReport(RetryerInfo retryerInfo, Object[] params) 上报数据protected abstract voiderror(RetryerResultContext context) protected abstract RetryExecutorParameter<com.github.rholder.retry.WaitStrategy,com.github.rholder.retry.StopStrategy> getRetryExecutorParameter(RetryerInfo retryerInfo) getRetrySuccessConsumer(RetryerResultContext retryerResultContext) protected abstract booleanpreValidator(RetryerInfo retryerInfo, RetryerResultContext resultContext) protected abstract voidsetStage()protected abstract voidsuccess(RetryerResultContext retryerResultContext) protected abstract voidunexpectedError(Exception e, RetryerResultContext retryerResultContext) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.aizuda.easy.retry.client.core.strategy.RetryStrategy
supports
-
构造器详细资料
-
AbstractRetryStrategies
public AbstractRetryStrategies()
-
-
方法详细资料
-
openRetry
- 指定者:
openRetry在接口中RetryStrategy
-
setStage
protected abstract void setStage() -
getRetrySuccessConsumer
-
doRetrySuccessConsumer
-
error
-
preValidator
protected abstract boolean preValidator(RetryerInfo retryerInfo, RetryerResultContext resultContext) -
unexpectedError
-
success
-
doGetRetryErrorConsumer
protected abstract Consumer<Throwable> doGetRetryErrorConsumer(RetryerInfo retryerInfo, Object[] params) -
doGetCallable
protected abstract Callable doGetCallable(RetryExecutor<com.github.rholder.retry.WaitStrategy, com.github.rholder.retry.StopStrategy> retryExecutor, Object[] params) -
getRetryExecutorParameter
protected abstract RetryExecutorParameter<com.github.rholder.retry.WaitStrategy,com.github.rholder.retry.StopStrategy> getRetryExecutorParameter(RetryerInfo retryerInfo) -
doReport
上报数据- 参数:
retryerInfo- 定义重试场景的信息params- 执行参数
-