接口的使用
com.alibaba.druid.pool.ha.selector.DataSourceSelector
使用DataSourceSelector的程序包
-
com.alibaba.druid.pool.ha中DataSourceSelector的使用
修饰符和类型方法说明voidHighAvailableDataSource.setDataSourceSelector(DataSourceSelector dataSourceSelector) -
com.alibaba.druid.pool.ha.selector中DataSourceSelector的使用
修饰符和类型类说明classUse the given name in ThreadLocal variable to choose DataSource.classA selector which uses java.util.Random to choose DataSource.classAn extend selector based on RandomDataSourceSelector which can stick a DataSource to a Thread in a while.修饰符和类型方法说明static DataSourceSelectorDataSourceSelectorFactory.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.返回变量类型为DataSourceSelector的类型的com.alibaba.druid.pool.ha.selector中的方法