Class RandomDataSourceRecoverThread
- java.lang.Object
-
- com.alibaba.druid.pool.ha.selector.RandomDataSourceRecoverThread
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_RECOVER_INTERVAL_SECONDS
-
Constructor Summary
Constructors Constructor Description RandomDataSourceRecoverThread(RandomDataSourceSelector selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRecoverIntervalSeconds()RandomDataSourceSelectorgetSelector()intgetValidationSleepSeconds()voidrun()voidsetRecoverIntervalSeconds(int recoverIntervalSeconds)voidsetSelector(RandomDataSourceSelector selector)voidsetValidationSleepSeconds(int validationSleepSeconds)
-
-
-
Field Detail
-
DEFAULT_RECOVER_INTERVAL_SECONDS
public static final int DEFAULT_RECOVER_INTERVAL_SECONDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RandomDataSourceRecoverThread
public RandomDataSourceRecoverThread(RandomDataSourceSelector selector)
-
-
Method Detail
-
getRecoverIntervalSeconds
public int getRecoverIntervalSeconds()
-
setRecoverIntervalSeconds
public void setRecoverIntervalSeconds(int recoverIntervalSeconds)
-
getValidationSleepSeconds
public int getValidationSleepSeconds()
-
setValidationSleepSeconds
public void setValidationSleepSeconds(int validationSleepSeconds)
-
getSelector
public RandomDataSourceSelector getSelector()
-
setSelector
public void setSelector(RandomDataSourceSelector selector)
-
-