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 Client
asClient()
Converts thisBlockingGrpcClient
to a client.GrpcExecutionContext
executionContext()
Get theGrpcExecutionContext
used during construction of this object.-
Methods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
-
-
-
Method Detail
-
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.
-
-