Class GatewayHealthManagerImpl

java.lang.Object
io.camunda.zeebe.gateway.health.impl.GatewayHealthManagerImpl
All Implemented Interfaces:
GatewayHealthManager

@ThreadSafe public final class GatewayHealthManagerImpl extends Object implements GatewayHealthManager
  • Constructor Details

    • GatewayHealthManagerImpl

      public GatewayHealthManagerImpl()
    • GatewayHealthManagerImpl

      public GatewayHealthManagerImpl(io.grpc.protobuf.services.HealthStatusManager statusManager)
  • Method Details

    • getStatus

      public Status getStatus()
      Description copied from interface: GatewayHealthManager
      This method returns the latest health status for the gateway, and is thread safe.
      Specified by:
      getStatus in interface GatewayHealthManager
      Returns:
      the current health status
    • setStatus

      public void setStatus(Status status)
      Description copied from interface: GatewayHealthManager
      This method sets the health status in a thread safe way.
      Specified by:
      setStatus in interface GatewayHealthManager
      Parameters:
      status - the new health status of the gateway
    • getHealthService

      public io.grpc.BindableService getHealthService()
      Description copied from interface: GatewayHealthManager
      This method return the GRPC BindableService to use it in the ServerBuilder
      Specified by:
      getHealthService in interface GatewayHealthManager
      Returns:
      the bindable GRPC service