Class RandomDataSourceSelector

    • Constructor Detail

    • Method Detail

      • setTarget

        public void setTarget​(String name)
        Description copied from interface: DataSourceSelector
        Set the target DataSource name to return. Wether to use this or not, it's decided by the implemention.
        Specified by:
        setTarget in interface DataSourceSelector
      • containInBlacklist

        public boolean containInBlacklist​(DataSource dataSource)
      • addBlacklist

        public void addBlacklist​(DataSource dataSource)
      • removeBlacklist

        public void removeBlacklist​(DataSource dataSource)
      • getCheckingIntervalSeconds

        public int getCheckingIntervalSeconds()
      • setCheckingIntervalSeconds

        public void setCheckingIntervalSeconds​(int checkingIntervalSeconds)
      • getRecoveryIntervalSeconds

        public int getRecoveryIntervalSeconds()
      • setRecoveryIntervalSeconds

        public void setRecoveryIntervalSeconds​(int recoveryIntervalSeconds)
      • getValidationSleepSeconds

        public int getValidationSleepSeconds()
      • setValidationSleepSeconds

        public void setValidationSleepSeconds​(int validationSleepSeconds)
      • getBlacklistThreshold

        public int getBlacklistThreshold()
      • setBlacklistThreshold

        public void setBlacklistThreshold​(int blacklistThreshold)