R - type of message receivedpublic interface GrpcReadStream<R>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
GrpcReadStream.Observer<R> |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Prevent any further processing for this
GrpcReadStream. |
CompletableFuture<Status> |
start(GrpcReadStream.Observer<R> observer)
Start a stream, using
observer for processing response messages. |
CompletableFuture<Status> start(GrpcReadStream.Observer<R> observer)
observer for processing response messages.
Returns future with the stream finish status.observer - receives response messagesIllegalStateException - if a method (including start()) on this class has been
called.void cancel()
GrpcReadStream. No further messages may be sent or
will be received. The server is informed of cancellations, but may not stop processing the
call. The future for the stream finish status will be completed with CANCELLED codeCopyright © 2024. All rights reserved.