public class CertainCodeRetryStrategy extends BaseWriterRetryStrategy
timeout| 构造器和说明 |
|---|
CertainCodeRetryStrategy() |
CertainCodeRetryStrategy(long timeout,
TimeUnit unit) |
| 限定符和类型 | 方法和说明 |
|---|---|
RetryStrategy |
clone()
Returns a RetryStrategy object of the same type that has not been retried.
|
long |
nextPause(String action,
Exception ex)
Get the delay time before the retries-th retry is initiated.
|
protected boolean |
retryNotMatterActions(String errorCode)
Retriable error code collection: others will not be retried by default.
|
boolean |
shouldRetry(Exception ex)
A retry strategy specially used for Writer.
|
getRetriespublic CertainCodeRetryStrategy()
public CertainCodeRetryStrategy(long timeout,
TimeUnit unit)
public RetryStrategy clone()
RetryStrategyclone 在接口中 RetryStrategyclone 在类中 BaseWriterRetryStrategyprotected boolean retryNotMatterActions(String errorCode)
public boolean shouldRetry(Exception ex)
BaseWriterRetryStrategyshouldRetry 在类中 BaseWriterRetryStrategyex - Error information from the last failed access attempt; either ClientException or OTSExceptionpublic long nextPause(String action, Exception ex)
RetryStrategynextPause 在接口中 RetryStrategynextPause 在类中 BaseWriterRetryStrategyaction - Operation name, such as "ListTable", "GetRow", "PutRow", etc.ex - Error information from the last failed attempt, either a ClientException or a TableStoreExceptionCopyright © 2025. All Rights Reserved.