diff options
author | Yang Gao <yangg@google.com> | 2018-12-07 13:15:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 13:15:30 -0800 |
commit | b590167cf28365111de0e2f6ccae1a86536d52cc (patch) | |
tree | 55b94f815d4213e0a82ebeb3766758d6793afb0b /include | |
parent | 6dc358ca341faf1bcfb88b4635caf61ca2d6c598 (diff) | |
parent | 2246607dedfbad98c3aa4f39997907a203985863 (diff) |
Merge pull request #17435 from yang-g/health_service_shutdown
Add a Shutdown call to HealthCheckServiceInterface
Diffstat (limited to 'include')
-rw-r--r-- | include/grpcpp/health_check_service_interface.h | 4 |
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++ |