Uses of Interface
com.alibaba.druid.pool.ha.selector.DataSourceSelector
-
Uses of DataSourceSelector in com.alibaba.druid.pool.ha
Modifier and TypeMethodDescriptionvoid
HighAvailableDataSource.setDataSourceSelector
(DataSourceSelector dataSourceSelector) -
Uses of DataSourceSelector in com.alibaba.druid.pool.ha.selector
Modifier and TypeClassDescriptionclass
Use the given name in ThreadLocal variable to choose DataSource.class
A selector which uses java.util.Random to choose DataSource.class
An extend selector based on RandomDataSourceSelector which can stick a DataSource to a Thread in a while.Modifier and TypeMethodDescriptionstatic DataSourceSelector
DataSourceSelectorFactory.getSelector
(String name, HighAvailableDataSource highAvailableDataSource) Get a new instance of the given selector name.DataSourceSelectorEnum.newInstance
(HighAvailableDataSource dataSource) Create a new instance of the DataSourceSelector represented by this enum.Modifier and TypeMethodDescriptionClass<? extends DataSourceSelector>
DataSourceSelectorEnum.getClazz()