Interface TrafficLoadBalanceAlgorithm
-
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public interface TrafficLoadBalanceAlgorithm extends org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithmTraffic load balance algorithm.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceMetaDatagetInstanceId(String name, List<InstanceMetaData> instances)Get instance definition.
-
-
-
Method Detail
-
getInstanceId
InstanceMetaData getInstanceId(String name, List<InstanceMetaData> instances)
Get instance definition.- Parameters:
name- traffic strategy nameinstances- instance collection- Returns:
- instance definition
-
-