Package io.servicetalk.grpc.api
Interface BlockingGrpcClient<Client extends GrpcClient>
-
- Type Parameters:
Client- The correspondingGrpcClient
- All Superinterfaces:
java.lang.AutoCloseable,GracefulAutoCloseable
public interface BlockingGrpcClient<Client extends GrpcClient> extends GracefulAutoCloseable
A blocking client to a gRPC service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientasClient()Converts thisBlockingGrpcClientto a client.GrpcExecutionContextexecutionContext()Get theGrpcExecutionContextused during construction of this object.-
Methods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
-
-
-
Method Detail
-
asClient
Client asClient()
Converts thisBlockingGrpcClientto a client.- Returns:
- This
BlockingGrpcClientas aBlockingGrpcClient.
-
executionContext
GrpcExecutionContext executionContext()
Get theGrpcExecutionContextused 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
GrpcExecutionContextused during construction of this object.
-
-