Interface LoadBalancerAlgorithm
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
DefaultLoadBalancerAlgorithm
public interface LoadBalancerAlgorithm
extends org.springframework.core.Ordered
Load Balancer algorithm interface.
When expanding the load balancing algorithm, implement this interface and register it as a bean.
- Author:
- zhangbinhub
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.client.ServiceInstancegetInstance(org.springframework.cloud.client.loadbalancer.Request<?> request, List<org.springframework.cloud.client.ServiceInstance> serviceInstances) Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Field Details
-
DEFAULT_SERVICE_ID
default service id.- See Also:
-
-
Method Details