public interface GrpcClient
API: GrpcClientRequest/GrpcClientResponse with Protobuf messages to call any gRPC service in a generic wayrequest(SocketAddress, MethodDescriptor): GrpcClientRequest/GrpcClientRequest with gRPC messages to call a given method of a gRPC service| Modifier and Type | Method and Description |
|---|---|
static GrpcClient |
client(Vertx vertx)
Create a new client
|
static GrpcClient |
client(Vertx vertx,
HttpClientOptions options)
Create a new client
|
Future<Void> |
close()
Close this client.
|
Future<GrpcClientRequest<Buffer,Buffer>> |
request(SocketAddress server)
Connect to the remote
server and create a request for any hosted gRPC service. |
<Req,Resp> Future<GrpcClientRequest<Req,Resp>> |
request(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> method)
Connect to the remote
server and create a request for given method of a hosted gRPC service. |
static GrpcClient client(Vertx vertx)
vertx - the vertx instancestatic GrpcClient client(Vertx vertx, HttpClientOptions options)
vertx - the vertx instanceoptions - the client optionsFuture<GrpcClientRequest<Buffer,Buffer>> request(SocketAddress server)
server and create a request for any hosted gRPC service.server - the server hosting the service<Req,Resp> Future<GrpcClientRequest<Req,Resp>> request(SocketAddress server, io.grpc.MethodDescriptor<Req,Resp> method)
server and create a request for given method of a hosted gRPC service.server - the server hosting the serviceCopyright © 2023 Eclipse. All rights reserved.