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 Summary
ConstructorsConstructorDescriptionGatewayHealthManagerImpl(io.grpc.protobuf.services.HealthStatusManager statusManager) -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.BindableServiceThis method return the GRPCBindableServiceto use it in theServerBuilderThis method returns the latest health status for the gateway, and is thread safe.voidThis method sets the health status in a thread safe way.
-
Constructor Details
-
GatewayHealthManagerImpl
public GatewayHealthManagerImpl() -
GatewayHealthManagerImpl
public GatewayHealthManagerImpl(io.grpc.protobuf.services.HealthStatusManager statusManager)
-
-
Method Details
-
getStatus
Description copied from interface:GatewayHealthManagerThis method returns the latest health status for the gateway, and is thread safe.- Specified by:
getStatusin interfaceGatewayHealthManager- Returns:
- the current health status
-
setStatus
Description copied from interface:GatewayHealthManagerThis method sets the health status in a thread safe way.- Specified by:
setStatusin interfaceGatewayHealthManager- Parameters:
status- the new health status of the gateway
-
getHealthService
public io.grpc.BindableService getHealthService()Description copied from interface:GatewayHealthManagerThis method return the GRPCBindableServiceto use it in theServerBuilder- Specified by:
getHealthServicein interfaceGatewayHealthManager- Returns:
- the bindable GRPC service
-