public abstract class BaseWriterRetryStrategy extends Object implements RetryStrategy
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
timeout |
| 构造器和说明 |
|---|
BaseWriterRetryStrategy(long timeout,
TimeUnit unit) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract RetryStrategy |
clone()
Returns a RetryStrategy object of the same type that has not been retried.
|
int |
getRetries()
Returns the number of retries for the current operation
|
long |
nextPause(String action,
Exception ex)
Get the delay time before the retries-th retry is initiated.
|
protected boolean |
shouldRetry(Exception ex)
A retry strategy specially used for Writer.
|
public BaseWriterRetryStrategy(long timeout,
TimeUnit unit)
public abstract RetryStrategy clone()
RetryStrategyclone 在接口中 RetryStrategyclone 在类中 Objectpublic int getRetries()
RetryStrategygetRetries 在接口中 RetryStrategyprotected boolean shouldRetry(Exception ex)
ex - Error information from the last failed access attempt; either ClientException or OTSExceptionpublic long nextPause(String action, Exception ex)
RetryStrategynextPause 在接口中 RetryStrategyaction - 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.