| Package | Description |
|---|---|
| com.alibaba.druid.pool.ha | |
| com.alibaba.druid.pool.ha.selector |
| Modifier and Type | Method and Description |
|---|---|
DataSourceSelector |
HighAvailableDataSource.getDataSourceSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
HighAvailableDataSource.setDataSourceSelector(DataSourceSelector dataSourceSelector) |
| Modifier and Type | Class and Description |
|---|---|
class |
NamedDataSourceSelector
Use the given name in ThreadLocal variable to choose DataSource.
|
class |
RandomDataSourceSelector
A selector which uses java.util.Random to choose DataSource.
|
| Modifier and Type | Method and Description |
|---|---|
static DataSourceSelector |
DataSourceSelectorFactory.getSelector(String name,
HighAvailableDataSource highAvailableDataSource) |
Copyright © 2013–2018 Alibaba Group. All rights reserved.