Module io.inverno.mod.discovery
Package io.inverno.mod.discovery
Interface TrafficLoadBalancer.Factory<A extends ServiceInstance,B>
- Type Parameters:
A
- the type of service instanceB
- the type of service request
- All Known Implementing Classes:
LeastRequestTrafficLoadBalancer.Factory
,MinLoadFactorTrafficLoadBalancer.Factory
- Enclosing interface:
TrafficLoadBalancer<A extends ServiceInstance,
B>
public static interface TrafficLoadBalancer.Factory<A extends ServiceInstance,B>
A traffic load balancer factory.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Collection<A> instances) Creates a traffic load balancer that load balances the specified collection of service instances.
-
Method Details
-
create
Creates a traffic load balancer that load balances the specified collection of service instances.
- Parameters:
instances
- a collection of service instances- Returns:
- a traffic load balancer
-