netifi-httpgateway/src/main/java/com/netifi/httpgateway/bridge/endpoint/egress/lb/ewma/EWMAEndpointLoadBalancerFactory.java
/**
   * Creates a new loadbalancer that is populated with EgressEndpoints supplied by the provided
   * factory supplier
   *
   * @param egressEndpointFactorySupplier a supplier that produces a stream of sets of
   *     WeightedEgressEndpointFactory. These factories are used by the load balancer to create new
   *     connections based on the aperture.
   * @return a load balancer
   */
Creates a new loadbalancer that is populated with EgressEndpoints supplied by the provided
factory supplier

@param egressEndpointFactorySupplier a supplier that produces a stream of sets of
WeightedEgressEndpointFactory. These factories are used by the load balancer to create new
connections based on the aperture.
@return a load balancer
Creates a new loadbalancer that is populated with EgressEndpoints supplied by the provided factory supplier @param egressEndpointFactorySupplier a supplier that produces a stream of sets of WeightedEgressEndpointFactory . These factories are used by the load balancer to create new connections based on the aperture . @return a load balancer
public EWMAEndpointLoadBalancer createNewLoadBalancer(
      String serviceName,
      EgressEndpointFactorySupplier<WeightedEgressEndpoint, WeightedEgressEndpointFactory>
          egressEndpointFactorySupplier,
      MeterRegistry registry) {
    RandomSelectionWeightedEgressEndpointFactoryPool pool =
        new RandomSelectionWeightedEgressEndpointFactoryPool(
            egressEndpointFactorySupplier, serviceName, registry);
    return new EWMAEndpointLoadBalancer(pool, registry);
  }
public EWMAEndpointLoadBalancer createNewLoadBalancer ( String serviceName , EgressEndpointFactorySupplier < WeightedEgressEndpoint , WeightedEgressEndpointFactory > egressEndpointFactorySupplier , MeterRegistry registry ) { RandomSelectionWeightedEgressEndpointFactoryPool pool = new RandomSelectionWeightedEgressEndpointFactoryPool ( egressEndpointFactorySupplier , serviceName , registry ) ; return new EWMAEndpointLoadBalancer ( pool , registry ) ; }
Creates a new loadbalancer that is populated with EgressEndpoints supplied by the provided
 factory supplier
Creates a new loadbalancer that is populated with EgressEndpoints supplied by the provided factory supplier