1
#include "source/extensions/load_balancing_policies/cluster_provided/config.h"
2

            
3
namespace Envoy {
4
namespace Extensions {
5
namespace LoadBalancingPolicies {
6
namespace ClusterProvided {
7

            
8
Upstream::ThreadAwareLoadBalancerPtr Factory::create(OptRef<const Upstream::LoadBalancerConfig>,
9
                                                     const Upstream::ClusterInfo&,
10
                                                     const Upstream::PrioritySet&, Runtime::Loader&,
11
1
                                                     Random::RandomGenerator&, TimeSource&) {
12
  // Cluster provided load balancer has empty implementation. Because it is a special case to
13
  // tell the cluster to use the load balancer provided by the cluster.
14
1
  return nullptr;
15
1
};
16

            
17
/**
18
 * Static registration for the Factory. @see RegisterFactory.
19
 */
20
REGISTER_FACTORY(Factory, Upstream::TypedLoadBalancerFactory);
21

            
22
} // namespace ClusterProvided
23
} // namespace LoadBalancingPolicies
24
} // namespace Extensions
25
} // namespace Envoy