| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BLACKLIST_THRESHOLD |
static int |
DEFAULT_CHECKING_INTERVAL_SECONDS |
| Constructor and Description |
|---|
RandomDataSourceValidateThread(RandomDataSourceSelector selector) |
| Modifier and Type | Method and Description |
|---|---|
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–2020 Alibaba Group. All rights reserved.