public class ClientCalls extends Object
Modifier and Type | Method and Description |
---|---|
static <ReqT,RespT> |
asyncBidiStreamingCall(io.grpc.ClientCall<ReqT,RespT> call,
StreamObserver<RespT> responseObserver)
Executes a bidi-streaming call.
|
static <ReqT,RespT> |
asyncClientStreamingCall(io.grpc.ClientCall<ReqT,RespT> call,
StreamObserver<RespT> responseObserver)
Executes a client-streaming call returning a
StreamObserver for the request messages. |
static <ReqT,RespT> |
asyncServerStreamingCall(io.grpc.ClientCall<ReqT,RespT> call,
ReqT param,
StreamObserver<RespT> responseObserver)
Executes a server-streaming call with a response
StreamObserver . |
static <ReqT,RespT> |
asyncUnaryCall(io.grpc.ClientCall<ReqT,RespT> call,
ReqT param,
StreamObserver<RespT> observer)
Executes a unary call with a response
StreamObserver . |
static <ReqT,RespT> |
blockingServerStreamingCall(io.grpc.Channel channel,
io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
ReqT param)
Executes a server-streaming call returning a blocking
Iterator over the
response stream. |
static <ReqT,RespT> |
blockingServerStreamingCall(io.grpc.ClientCall<ReqT,RespT> call,
ReqT param)
Executes a server-streaming call returning a blocking
Iterator over the
response stream. |
static <ReqT,RespT> |
blockingUnaryCall(io.grpc.Channel channel,
io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
ReqT param)
Executes a unary call and blocks on the response.
|
static <ReqT,RespT> |
blockingUnaryCall(io.grpc.ClientCall<ReqT,RespT> call,
ReqT param)
Executes a unary call and blocks on the response.
|
static <ReqT,RespT> |
futureUnaryCall(io.grpc.ClientCall<ReqT,RespT> call,
ReqT param)
Executes a unary call and returns a
ListenableFuture to the response. |
public static <ReqT,RespT> void asyncUnaryCall(io.grpc.ClientCall<ReqT,RespT> call, ReqT param, StreamObserver<RespT> observer)
StreamObserver
.public static <ReqT,RespT> void asyncServerStreamingCall(io.grpc.ClientCall<ReqT,RespT> call, ReqT param, StreamObserver<RespT> responseObserver)
StreamObserver
.public static <ReqT,RespT> StreamObserver<ReqT> asyncClientStreamingCall(io.grpc.ClientCall<ReqT,RespT> call, StreamObserver<RespT> responseObserver)
StreamObserver
for the request messages.public static <ReqT,RespT> StreamObserver<ReqT> asyncBidiStreamingCall(io.grpc.ClientCall<ReqT,RespT> call, StreamObserver<RespT> responseObserver)
public static <ReqT,RespT> RespT blockingUnaryCall(io.grpc.ClientCall<ReqT,RespT> call, ReqT param)
public static <ReqT,RespT> RespT blockingUnaryCall(io.grpc.Channel channel, io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, ReqT param)
public static <ReqT,RespT> Iterator<RespT> blockingServerStreamingCall(io.grpc.ClientCall<ReqT,RespT> call, ReqT param)
Iterator
over the
response stream.public static <ReqT,RespT> Iterator<RespT> blockingServerStreamingCall(io.grpc.Channel channel, io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, ReqT param)
Iterator
over the
response stream.public static <ReqT,RespT> ListenableFuture<RespT> futureUnaryCall(io.grpc.ClientCall<ReqT,RespT> call, ReqT param)
ListenableFuture
to the response.