aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/lb_policy_registry.h
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2018-11-15 13:11:45 -0800
committerGravatar Juanli Shen <juanlishen@google.com>2018-11-15 13:31:27 -0800
commit8a880801aea7d82a792635c9d26271218efcbad3 (patch)
treea9c45222ddc40aa201958bf57d8849258c92e17f /src/core/ext/filters/client_channel/lb_policy_registry.h
parentfdf63a7c023a305d06cda1a247e12cd704a3a976 (diff)
Add support for LB config in service config
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy_registry.h')
-rw-r--r--src/core/ext/filters/client_channel/lb_policy_registry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy_registry.h b/src/core/ext/filters/client_channel/lb_policy_registry.h
index 2e9bb061ed..338f7c9f69 100644
--- a/src/core/ext/filters/client_channel/lb_policy_registry.h
+++ b/src/core/ext/filters/client_channel/lb_policy_registry.h
@@ -47,6 +47,10 @@ class LoadBalancingPolicyRegistry {
/// Creates an LB policy of the type specified by \a name.
static OrphanablePtr<LoadBalancingPolicy> CreateLoadBalancingPolicy(
const char* name, const LoadBalancingPolicy::Args& args);
+
+ /// Returns true if the LB policy factory specified by \a name exists in this
+ /// registry.
+ static bool LoadBalancingPolicyExists(const char* name);
};
} // namespace grpc_core