| 程序包 | 说明 |
|---|---|
| org.tikv.common.util |
| 限定符和类型 | 字段和说明 |
|---|---|
Map<BackOffFunction.BackOffFuncType,BackOffFunction> |
ConcreteBackOffer.backOffFunctionMap |
| 限定符和类型 | 方法和说明 |
|---|---|
static BackOffFunction.BackOffFuncType |
BackOffFunction.BackOffFuncType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BackOffFunction.BackOffFuncType[] |
BackOffFunction.BackOffFuncType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
BackOffer.canRetryAfterSleep(BackOffFunction.BackOffFuncType funcType)
canRetryAfterSleep sleeps a while base on the BackOffType and records the error message.
|
boolean |
ConcreteBackOffer.canRetryAfterSleep(BackOffFunction.BackOffFuncType funcType) |
boolean |
ConcreteBackOffer.canRetryAfterSleep(BackOffFunction.BackOffFuncType funcType,
long maxSleepMs) |
void |
BackOffer.doBackOff(BackOffFunction.BackOffFuncType funcType,
Exception err)
doBackOff sleeps a while base on the BackOffType and records the error message.
|
void |
ConcreteBackOffer.doBackOff(BackOffFunction.BackOffFuncType funcType,
Exception err) |
void |
BackOffer.doBackOffWithMaxSleep(BackOffFunction.BackOffFuncType funcType,
long maxSleepMs,
Exception err)
BackoffWithMaxSleep sleeps a while base on the backoffType and records the error message and
never sleep more than maxSleepMs for each sleep.
|
void |
ConcreteBackOffer.doBackOffWithMaxSleep(BackOffFunction.BackOffFuncType funcType,
long maxSleepMs,
Exception err) |
Copyright © 2023 PingCAP. All rights reserved.