public interface BackOffer
Modifier and Type | Interface and Description |
---|---|
static class |
BackOffer.BackOffStrategy |
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_GET_MAX_BACKOFF |
static int |
COP_NEXT_MAX_BACKOFF |
static int |
GET_MAX_BACKOFF |
static int |
INGEST_BACKOFF |
static int |
PD_INFO_BACKOFF |
static int |
RAWKV_MAX_BACKOFF |
static int |
SCANNER_NEXT_MAX_BACKOFF |
static int |
SCATTER_REGION_BACKOFF |
static int |
seconds |
static int |
SPLIT_REGION_BACKOFF |
static int |
TIKV_SWITCH_MODE_BACKOFF |
static int |
TSO_MAX_BACKOFF |
Modifier and Type | Method and Description |
---|---|
boolean |
canRetryAfterSleep(BackOffFunction.BackOffFuncType funcType)
canRetryAfterSleep sleeps a while base on the BackOffType and records the error message.
|
void |
checkTimeout()
check if deadline exceeded.
|
void |
doBackOff(BackOffFunction.BackOffFuncType funcType,
Exception err)
doBackOff sleeps a while base on the BackOffType and records the error message.
|
void |
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.
|
Long |
getClusterId() |
SlowLog |
getSlowLog() |
static final int seconds
static final int TSO_MAX_BACKOFF
static final int SCANNER_NEXT_MAX_BACKOFF
static final int BATCH_GET_MAX_BACKOFF
static final int COP_NEXT_MAX_BACKOFF
static final int GET_MAX_BACKOFF
static final int RAWKV_MAX_BACKOFF
static final int PD_INFO_BACKOFF
static final int TIKV_SWITCH_MODE_BACKOFF
static final int SPLIT_REGION_BACKOFF
static final int SCATTER_REGION_BACKOFF
static final int INGEST_BACKOFF
void doBackOff(BackOffFunction.BackOffFuncType funcType, Exception err)
void checkTimeout()
boolean canRetryAfterSleep(BackOffFunction.BackOffFuncType funcType)
void doBackOffWithMaxSleep(BackOffFunction.BackOffFuncType funcType, long maxSleepMs, Exception err)
SlowLog getSlowLog()
Long getClusterId()
Copyright © 2024 PingCAP. All rights reserved.