BlockingClient
- The corresponding BlockingGrpcClient
public interface GrpcClient<BlockingClient extends BlockingGrpcClient> extends ListenableAsyncCloseable, GracefulAutoCloseable
Modifier and Type | Method and Description |
---|---|
BlockingClient |
asBlockingClient()
Converts this
GrpcClient to a blocking client. |
default void |
close() |
GrpcExecutionContext |
executionContext()
Get the
GrpcExecutionContext used during construction of this object. |
onClose
closeAsync, closeAsyncGracefully
closeGracefully
BlockingClient asBlockingClient()
GrpcClient
to a blocking client.GrpcClient
as a BlockingClient
.GrpcExecutionContext executionContext()
GrpcExecutionContext
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.
GrpcExecutionContext
used during construction of this object.default void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception