Package io.servicetalk.health.v1
Class Health.ClientFactory
java.lang.Object
io.servicetalk.grpc.api.GrpcClientFactory<Health.HealthClient,Health.BlockingHealthClient>
io.servicetalk.health.v1.Health.ClientFactory
- Enclosing class:
- Health
public static class Health.ClientFactory
extends GrpcClientFactory<Health.HealthClient,Health.BlockingHealthClient>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Health.BlockingHealthClient
newBlockingClient
(GrpcClientCallFactory factory) Create a new client that follows the specified gRPCGrpcClientFactory
contract using the passedGrpcClientCallFactory
.protected Health.HealthClient
newClient
(GrpcClientCallFactory factory) Create a new client that follows the specified gRPCGrpcClientFactory
contract using the passedGrpcClientCallFactory
.Methods inherited from class io.servicetalk.grpc.api.GrpcClientFactory
bufferDecoderGroup, bufferDecoderGroup, newBlockingClientForCallFactory, newClientForCallFactory, supportedMessageCodings, supportedMessageCodings
-
Constructor Details
-
ClientFactory
public ClientFactory()
-
-
Method Details
-
newClient
Description copied from class:GrpcClientFactory
Create a new client that follows the specified gRPCGrpcClientFactory
contract using the passedGrpcClientCallFactory
.- Specified by:
newClient
in classGrpcClientFactory<Health.HealthClient,
Health.BlockingHealthClient> - Parameters:
factory
-GrpcClientCallFactory
to use for creating client calls. The returnedGrpcClientFactory
should own the lifecycle of this factory.- Returns:
- A new gRPC client following the specified
gRPC
GrpcClientFactory
contract.
-
newBlockingClient
Description copied from class:GrpcClientFactory
Create a new client that follows the specified gRPCGrpcClientFactory
contract using the passedGrpcClientCallFactory
.- Specified by:
newBlockingClient
in classGrpcClientFactory<Health.HealthClient,
Health.BlockingHealthClient> - Parameters:
factory
-GrpcClientCallFactory
to use for creating client calls. The returnedGrpcClientFactory
should own the lifecycle of this factory.- Returns:
- A new gRPC client following the specified
gRPC
GrpcClientFactory
contract.
-