mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add a isInBlackList() method
This commit is contained in:
@@ -195,6 +195,10 @@ public class HighAvailableDataSource extends WrapperAdapter implements DataSourc
|
||||
blacklist.remove(name);
|
||||
}
|
||||
|
||||
public boolean isInBlackList(String name) {
|
||||
return blacklist.contains(name);
|
||||
}
|
||||
|
||||
public void setSelector(String name) {
|
||||
DataSourceSelector selector = DataSourceSelectorFactory.getSelector(name, this);
|
||||
if (selector != null) {
|
||||
|
||||
Reference in New Issue
Block a user