public class RetryDuration extends Object implements AppendStrategy
| 构造器和说明 |
|---|
RetryDuration(long durationMs,
int retryTimes) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getDuration() |
int |
getRetryTimes() |
boolean |
needToAppend(HostAddress host,
Properties properties) |
static void |
removeFromFailureRecords(HostAddress host) |
String |
toJson() |
String |
toString() |
static void |
updateMaxDuration(long newDuration) |
public String toJson()
toJson 在接口中 AppendStrategypublic long getDuration()
public int getRetryTimes()
public boolean needToAppend(HostAddress host, Properties properties)
needToAppend 在接口中 AppendStrategypublic static void removeFromFailureRecords(HostAddress host)
public static void updateMaxDuration(long newDuration)
Copyright © 2024 oceanbase.com. All rights reserved.