Interface ReadQueryLoadBalanceAlgorithm
-
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public interface ReadQueryLoadBalanceAlgorithm extends org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithmRead query load-balance algorithm.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDataSource(String name, String writeDataSourceName, List<String> readDataSourceNames)Get data source.
-
-
-
Method Detail
-
getDataSource
String getDataSource(String name, String writeDataSourceName, List<String> readDataSourceNames)
Get data source.- Parameters:
name- read query logic data source namewriteDataSourceName- name of write data sourcereadDataSourceNames- names of read data sources- Returns:
- name of selected data source
-
-