| 限定符和类型 | 字段和说明 |
|---|---|
private static Log |
LOG |
private RandomDataSourceSelector |
selector |
private int |
sleepSeconds |
private int |
validationSleepSeconds |
| 构造器和说明 |
|---|
RandomDataSourceRecoverThread(RandomDataSourceSelector selector) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getSleepSeconds() |
int |
getValidationSleepSeconds() |
void |
run() |
void |
setSleepSeconds(int sleepSeconds) |
void |
setValidationSleepSeconds(int validationSleepSeconds) |
private void |
sleep() |
private void |
sleepBeforeValidation() |
private void |
tryOneDataSource(DruidDataSource dataSource) |
private static final Log LOG
private RandomDataSourceSelector selector
private int sleepSeconds
private int validationSleepSeconds
public RandomDataSourceRecoverThread(RandomDataSourceSelector selector)
private void tryOneDataSource(DruidDataSource dataSource)
private void sleepBeforeValidation()
private void sleep()
public int getSleepSeconds()
public void setSleepSeconds(int sleepSeconds)
public int getValidationSleepSeconds()
public void setValidationSleepSeconds(int validationSleepSeconds)
Copyright © 2013–2019 Alibaba Group. All rights reserved.