aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2018-12-06 16:16:58 -0800
committerGravatar yang-g <yangg@google.com>2018-12-06 16:16:58 -0800
commitf1f557bc43992ade0f09c9240c2d5c71c3478f0a (patch)
tree7829b5551a5e5312ee2172eb02dd1eee00ba240d /include
parente97c9457e2f4e6733873ea2975d3b90432fdfdc1 (diff)
Add a Shutdown call to HealthCheckServiceInterface
Diffstat (limited to 'include')
-rw-r--r--include/grpcpp/health_check_service_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpcpp/health_check_service_interface.h b/include/grpcpp/health_check_service_interface.h
index b45a699bda..dfd4c3983a 100644
--- a/include/grpcpp/health_check_service_interface.h
+++ b/include/grpcpp/health_check_service_interface.h
@@ -37,6 +37,10 @@ class HealthCheckServiceInterface {
bool serving) = 0;
/// Apply to all registered service names.
virtual void SetServingStatus(bool serving) = 0;
+
+ /// Set all registered service names to not serving and prevent future
+ /// state changes.
+ virtual void Shutdown() {}
};
/// Enable/disable the default health checking service. This applies to all C++