parameters: (self)
docstring: Permanently sets the status of all services to NOT_SERVING.
  
          This should be invoked when the server is entering a graceful shutdown
          period. After this method is invoked, future attempts to set the status
          of a service will be ignored.
  
          This is an EXPERIMENTAL API.
docstring_summary: Permanently sets the status of all services to NOT_SERVING.
docstring_tokens: Permanently sets the status of all services to NOT_SERVING .
function: def enter_graceful_shutdown(self):
          """Permanently sets the status of all services to NOT_SERVING.
  
          This should be invoked when the server is entering a graceful shutdown
          period. After this method is invoked, future attempts to set the status
          of a service will be ignored.
  
          This is an EXPERIMENTAL API.
          """
          with self._lock:
              if self._gracefully_shutting_down:
                  return
              else:
                  for service in self._server_status:
                      self.set(service,
                               _health_pb2.HealthCheckResponse.NOT_SERVING)  # pylint: disable=no-member
                  self._gracefully_shutting_down = True
function_tokens: def enter_graceful_shutdown ( self ) : with self . _lock : if self . _gracefully_shutting_down : return else : for service in self . _server_status : self . set ( service , _health_pb2 . HealthCheckResponse . NOT_SERVING ) # pylint: disable=no-member self . _gracefully_shutting_down = True