public class CertainCodeNotRetryStrategy extends BaseWriterRetryStrategy
timeout| 构造器和说明 |
|---|
CertainCodeNotRetryStrategy() |
CertainCodeNotRetryStrategy(long timeout,
TimeUnit unit) |
| 限定符和类型 | 方法和说明 |
|---|---|
RetryStrategy |
clone()
返回一个同类型且尚未重试的RetryStrategy对象。
|
long |
nextPause(String action,
Exception ex)
得到发起第retries次重试前延迟的时间。
|
protected boolean |
retryNotMatterActions(String errorCode)
不做重试的误码集合:其他默认重试
OTSParameterInvalid, OTSConditionCheckFail, OTSRequestBodyTooLarge,
OTSInvalidPK, OTSOutOfColumnCountLimit, OTSOutOfRowSizeLimit,
|
boolean |
shouldRetry(Exception ex)
Writer特殊使用的重试策略,规则为:
1.
|
getRetriespublic CertainCodeNotRetryStrategy()
public CertainCodeNotRetryStrategy(long timeout,
TimeUnit unit)
public RetryStrategy clone()
RetryStrategyclone 在接口中 RetryStrategyclone 在类中 BaseWriterRetryStrategyprotected boolean retryNotMatterActions(String errorCode)
public boolean shouldRetry(Exception ex)
BaseWriterRetryStrategyshouldRetry 在类中 BaseWriterRetryStrategyex - 上次访问失败的错误信息、为ClientException或OTSExceptionpublic long nextPause(String action, Exception ex)
RetryStrategynextPause 在接口中 RetryStrategynextPause 在类中 BaseWriterRetryStrategyaction - 操作名,比如"ListTable"、"GetRow"、"PutRow"等ex - 上次访问失败的错误信息、为ClientException或TableStoreExceptionCopyright © 2020. All Rights Reserved.