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.
|
getRetries
public CertainCodeNotRetryStrategy()
public CertainCodeNotRetryStrategy(long timeout, TimeUnit unit)
public RetryStrategy clone()
RetryStrategy
clone
在接口中 RetryStrategy
clone
在类中 BaseWriterRetryStrategy
protected boolean retryNotMatterActions(String errorCode)
public boolean shouldRetry(Exception ex)
BaseWriterRetryStrategy
shouldRetry
在类中 BaseWriterRetryStrategy
ex
- 上次访问失败的错误信息、为ClientException或OTSExceptionpublic long nextPause(String action, Exception ex)
RetryStrategy
nextPause
在接口中 RetryStrategy
nextPause
在类中 BaseWriterRetryStrategy
action
- 操作名,比如"ListTable"、"GetRow"、"PutRow"等ex
- 上次访问失败的错误信息、为ClientException或TableStoreExceptionCopyright © 2021. All Rights Reserved.