Interface TrafficLoadBalanceAlgorithm
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public interface TrafficLoadBalanceAlgorithm
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
Traffic load balance algorithm.
-
Method Summary
Modifier and TypeMethodDescriptiongetInstanceId(String name, List<InstanceMetaData> instances) Get instance definition.Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getType, getTypeAliases, init, isDefault
-
Method Details
-
getInstanceId
Get instance definition.- Parameters:
name- traffic strategy nameinstances- instance collection- Returns:
- instance definition
-