public static interface Health.HealthClient extends GrpcClient<Health.BlockingHealthClient>
| Modifier and Type | Method and Description |
|---|---|
default Health.BlockingHealthClient |
asBlockingClient() |
default Single<HealthCheckResponse> |
check(GrpcClientMetadata metadata,
HealthCheckRequest request)
If the requested service is unknown, the call will fail with status
NOT_FOUND.
|
default Single<HealthCheckResponse> |
check(Health.CheckMetadata metadata,
HealthCheckRequest request)
Deprecated.
|
Single<HealthCheckResponse> |
check(HealthCheckRequest request)
If the requested service is unknown, the call will fail with status
NOT_FOUND.
|
default Publisher<HealthCheckResponse> |
watch(GrpcClientMetadata metadata,
HealthCheckRequest request)
Performs a watch for the serving status of the requested service.
|
default Publisher<HealthCheckResponse> |
watch(Health.WatchMetadata metadata,
HealthCheckRequest request)
Deprecated.
|
Publisher<HealthCheckResponse> |
watch(HealthCheckRequest request)
Performs a watch for the serving status of the requested service.
|
Single<HealthCheckResponse> check(HealthCheckRequest request)
If the requested service is unknown, the call will fail with status NOT_FOUND.
request - the request to send to the server.Single which completes when the response is received from the server.@Deprecated default Single<HealthCheckResponse> check(Health.CheckMetadata metadata, HealthCheckRequest request)
check(GrpcClientMetadata,HealthCheckRequest).If the requested service is unknown, the call will fail with status NOT_FOUND.
metadata - the metadata associated with this client call.request - the request to send to the server.Single which completes when the response is received from the server.default Single<HealthCheckResponse> check(GrpcClientMetadata metadata, HealthCheckRequest request)
If the requested service is unknown, the call will fail with status NOT_FOUND.
metadata - the metadata associated with this client call.request - the request to send to the server.Single which completes when the response is received from the server.Publisher<HealthCheckResponse> watch(HealthCheckRequest request)
Performs a watch for the serving status of the requested service. The server will immediately send back a message indicating the current serving status. It will then subsequently send a new message whenever the service's serving status changes. If the requested service is unknown when the call is received, the server will send a message setting the serving status to SERVICE_UNKNOWN but will *not* terminate the call. If at some future point, the serving status of the service becomes known, the server will send a new message with the service's serving status. If the call terminates with status UNIMPLEMENTED, then clients should assume this method is not supported and should not retry the call. If the call terminates with any other status (including OK), clients should retry the call with appropriate exponential backoff.
request - the request to send to the server.HealthCheckResponse from the server.@Deprecated default Publisher<HealthCheckResponse> watch(Health.WatchMetadata metadata, HealthCheckRequest request)
watch(GrpcClientMetadata,HealthCheckRequest).Performs a watch for the serving status of the requested service. The server will immediately send back a message indicating the current serving status. It will then subsequently send a new message whenever the service's serving status changes. If the requested service is unknown when the call is received, the server will send a message setting the serving status to SERVICE_UNKNOWN but will *not* terminate the call. If at some future point, the serving status of the service becomes known, the server will send a new message with the service's serving status. If the call terminates with status UNIMPLEMENTED, then clients should assume this method is not supported and should not retry the call. If the call terminates with any other status (including OK), clients should retry the call with appropriate exponential backoff.
metadata - the metadata associated with this client call.request - the request to send to the server.HealthCheckResponse from the server.default Publisher<HealthCheckResponse> watch(GrpcClientMetadata metadata, HealthCheckRequest request)
Performs a watch for the serving status of the requested service. The server will immediately send back a message indicating the current serving status. It will then subsequently send a new message whenever the service's serving status changes. If the requested service is unknown when the call is received, the server will send a message setting the serving status to SERVICE_UNKNOWN but will *not* terminate the call. If at some future point, the serving status of the service becomes known, the server will send a new message with the service's serving status. If the call terminates with status UNIMPLEMENTED, then clients should assume this method is not supported and should not retry the call. If the call terminates with any other status (including OK), clients should retry the call with appropriate exponential backoff.
metadata - the metadata associated with this client call.request - the request to send to the server.HealthCheckResponse from the server.default Health.BlockingHealthClient asBlockingClient()
asBlockingClient in interface GrpcClient<Health.BlockingHealthClient>