public static interface Health.BlockingHealthClient extends BlockingGrpcClient<Health.HealthClient>
| Modifier and Type | Method and Description |
|---|---|
default HealthCheckResponse |
check(GrpcClientMetadata metadata,
HealthCheckRequest request)
If the requested service is unknown, the call will fail with status
NOT_FOUND.
|
default HealthCheckResponse |
check(Health.CheckMetadata metadata,
HealthCheckRequest request)
Deprecated.
|
HealthCheckResponse |
check(HealthCheckRequest request)
If the requested service is unknown, the call will fail with status
NOT_FOUND.
|
default BlockingIterable<HealthCheckResponse> |
watch(GrpcClientMetadata metadata,
HealthCheckRequest request)
Performs a watch for the serving status of the requested service.
|
default BlockingIterable<HealthCheckResponse> |
watch(Health.WatchMetadata metadata,
HealthCheckRequest request)
Deprecated.
|
BlockingIterable<HealthCheckResponse> |
watch(HealthCheckRequest request)
Performs a watch for the serving status of the requested service.
|
HealthCheckResponse check(HealthCheckRequest request) throws Exception
If the requested service is unknown, the call will fail with status NOT_FOUND.
request - the request from the client.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.@Deprecated default HealthCheckResponse check(Health.CheckMetadata metadata, HealthCheckRequest request) throws Exception
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 from the client.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.default HealthCheckResponse check(GrpcClientMetadata metadata, HealthCheckRequest request) throws Exception
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 from the client.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.BlockingIterable<HealthCheckResponse> watch(HealthCheckRequest request) throws Exception
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 from the client.HealthCheckResponse from the server.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.@Deprecated default BlockingIterable<HealthCheckResponse> watch(Health.WatchMetadata metadata, HealthCheckRequest request) throws Exception
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 from the client.HealthCheckResponse from the server.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.default BlockingIterable<HealthCheckResponse> watch(GrpcClientMetadata metadata, HealthCheckRequest request) throws Exception
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 from the client.HealthCheckResponse from the server.Exception - if an unexpected application error occurs.GrpcStatusException - if an expected application exception occurs. Its contents will be serialized and propagated to the peer.