Interface TrafficLoadBalancer.Factory<A extends ServiceInstance,B>

Type Parameters:
A - the type of service instance
B - 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 Type
    Method
    Description
    create(Collection<A> instances)
    Creates a traffic load balancer that load balances the specified collection of service instances.
  • Method Details

    • create

      TrafficLoadBalancer<A,B> create(Collection<A> instances)

      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