\Aliyun\OTS\RetryRetryPolicy

重试逻辑的接口,规定了一个重试逻辑的最大重试次数,什么情况下进行重试,以及重试间隔。 如果需要自定义重试策略,你需要定义一个类实现这个接口。 请参考 DefaultRetryPolicy 的代码。

Summary

Methods
Constants
maxRetryTimeReached()
canRetry()
getRetryDelay()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

maxRetryTimeReached()

maxRetryTimeReached(\Aliyun\OTS\Handlers\RequestContext  $context) 

Parameters

\Aliyun\OTS\Handlers\RequestContext $context

canRetry()

canRetry(\Aliyun\OTS\Handlers\RequestContext  $context) 

Parameters

\Aliyun\OTS\Handlers\RequestContext $context

getRetryDelay()

getRetryDelay(\Aliyun\OTS\Handlers\RequestContext  $context) 

Parameters

\Aliyun\OTS\Handlers\RequestContext $context