R - type of message receivedW - type of message to be sent to the serverpublic class ReadWriteStreamCall<R,W> extends io.grpc.ClientCall.Listener<R> implements GrpcReadWriteStream<R,W>
GrpcReadStream.Observer<R>| Constructor and Description |
|---|
ReadWriteStreamCall(io.grpc.ClientCall<W,R> call,
io.grpc.Metadata headers,
AuthCallOptions callOptions,
GrpcStatusHandler statusConsumer) |
| Modifier and Type | Method and Description |
|---|---|
String |
authToken() |
void |
cancel() |
void |
close() |
void |
onClose(io.grpc.Status status,
io.grpc.Metadata trailers) |
void |
onMessage(R message) |
void |
onReady() |
void |
sendNext(W message) |
CompletableFuture<Status> |
start(GrpcReadStream.Observer<R> observer) |
public ReadWriteStreamCall(io.grpc.ClientCall<W,R> call, io.grpc.Metadata headers, AuthCallOptions callOptions, GrpcStatusHandler statusConsumer)
public String authToken()
authToken in interface GrpcReadWriteStream<R,W>public CompletableFuture<Status> start(GrpcReadStream.Observer<R> observer)
start in interface GrpcReadStream<R>public void sendNext(W message)
sendNext in interface GrpcReadWriteStream<R,W>public void cancel()
cancel in interface GrpcReadStream<R>public void onMessage(R message)
onMessage in class io.grpc.ClientCall.Listener<R>public void onReady()
onReady in class io.grpc.ClientCall.Listener<R>public void close()
close in interface GrpcReadWriteStream<R,W>Copyright © 2023. All rights reserved.