Package io.servicetalk.grpc.api
Interface BlockingGrpcClient<Client extends GrpcClient>
- Type Parameters:
Client
- The correspondingGrpcClient
- All Superinterfaces:
AutoCloseable
,GracefulAutoCloseable
- All Known Subinterfaces:
Health.BlockingHealthClient
A blocking client to a gRPC service.
-
Method Summary
Modifier and TypeMethodDescriptionasClient()
Converts thisBlockingGrpcClient
to a client.Get theGrpcExecutionContext
used during construction of this object.Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
Method Details
-
asClient
Client asClient()Converts thisBlockingGrpcClient
to a client.- Returns:
- This
BlockingGrpcClient
as aBlockingGrpcClient
.
-
executionContext
GrpcExecutionContext executionContext()Get theGrpcExecutionContext
used during construction of this object.Note that the
ExecutionContext.ioExecutor()
will not necessarily be associated with a specific thread unless that was how this object was built.- Returns:
- the
GrpcExecutionContext
used during construction of this object.
-