| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BLACKLIST_THRESHOLD |
static int |
DEFAULT_CHECKING_INTERVAL_SECONDS |
| 构造器和说明 |
|---|
RandomDataSourceValidateThread(RandomDataSourceSelector selector) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBlacklistThreshold() |
int |
getCheckingIntervalSeconds() |
RandomDataSourceSelector |
getSelector() |
int |
getValidationSleepSeconds() |
static void |
logSuccessTime(DataSourceProxy dataSource)
Provide a static method to record the last success time of a DataSource
|
void |
run() |
void |
setBlacklistThreshold(int blacklistThreshold) |
void |
setCheckingIntervalSeconds(int checkingIntervalSeconds) |
void |
setSelector(RandomDataSourceSelector selector) |
void |
setValidationSleepSeconds(int validationSleepSeconds) |
public static final int DEFAULT_CHECKING_INTERVAL_SECONDS
public static final int DEFAULT_BLACKLIST_THRESHOLD
public RandomDataSourceValidateThread(RandomDataSourceSelector selector)
public static void logSuccessTime(DataSourceProxy dataSource)
public int getCheckingIntervalSeconds()
public void setCheckingIntervalSeconds(int checkingIntervalSeconds)
public int getValidationSleepSeconds()
public void setValidationSleepSeconds(int validationSleepSeconds)
public int getBlacklistThreshold()
public void setBlacklistThreshold(int blacklistThreshold)
public RandomDataSourceSelector getSelector()
public void setSelector(RandomDataSourceSelector selector)
Copyright © 2013–2023. All rights reserved.