Class RandomDataSourceRecoverThread

java.lang.Object
com.alibaba.druid.pool.ha.selector.RandomDataSourceRecoverThread
All Implemented Interfaces:
Runnable

public class RandomDataSourceRecoverThread extends Object implements Runnable
A Thread trying to test if DataSource in blacklist has been recovered.
Author:
DigitalSonic
  • Field Details

    • DEFAULT_RECOVER_INTERVAL_SECONDS

      public static final int DEFAULT_RECOVER_INTERVAL_SECONDS
      See Also:
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • 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)