public enum WriterRetryStrategy extends Enum<WriterRetryStrategy>
| Enum Constant and Description |
|---|
CERTAIN_ERROR_CODE_NOT_RETRY
给定不需要重试的错误码集合
非给定的错误码,都做重试
不重试列表:
OTSParameterInvalid, OTSConditionCheckFail, OTSRequestBodyTooLarge,
OTSInvalidPK, OTSOutOfColumnCountLimit, OTSOutOfRowSizeLimit,
|
CERTAIN_ERROR_CODE_RETRY
给定需要重试的错误码集合
非给定的错误码,都不做重试
重试列表:
OTSInternalServerError, OTSRequestTimeout, OTSPartitionUnavailable, OTSTableNotReady,
OTSRowOperationConflict, OTSTimeout, OTSServerUnavailable, OTSServerBusy,
|
| Modifier and Type | Method and Description |
|---|---|
static WriterRetryStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriterRetryStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriterRetryStrategy CERTAIN_ERROR_CODE_RETRY
public static final WriterRetryStrategy CERTAIN_ERROR_CODE_NOT_RETRY
public static WriterRetryStrategy[] values()
for (WriterRetryStrategy c : WriterRetryStrategy.values()) System.out.println(c);
public static WriterRetryStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All Rights Reserved.