public interface ClientStreamListener extends StreamListener
Modifier and Type | Interface and Description |
---|---|
static class |
ClientStreamListener.RpcProgress
The progress of the RPC when client stream listener is closed.
|
StreamListener.MessageProducer
Modifier and Type | Method and Description |
---|---|
void |
closed(Status status,
ClientStreamListener.RpcProgress rpcProgress,
Metadata trailers)
Called when the stream is fully closed.
|
void |
closed(Status status,
Metadata trailers)
Called when the stream is fully closed.
|
void |
headersRead(Metadata headers)
Called upon receiving all header information from the remote end-point.
|
messagesAvailable, onReady
void headersRead(Metadata headers)
closed(io.grpc.Status, Metadata)
is called.
This method should return quickly, as the same thread may be used to process other streams.
headers
- the fully buffered received headers.void closed(Status status, Metadata trailers)
Status.Code.OK
is the only status code that is guaranteed
to have been sent from the remote server. Any other status code may have been caused by
abnormal stream termination. This is guaranteed to always be the final call on a listener. No
further callbacks will be issued.
This method should return quickly, as the same thread may be used to process other streams.
status
- details about the remote closuretrailers
- trailing metadatavoid closed(Status status, ClientStreamListener.RpcProgress rpcProgress, Metadata trailers)
Status.Code.OK
is the only status code that is guaranteed
to have been sent from the remote server. Any other status code may have been caused by
abnormal stream termination. This is guaranteed to always be the final call on a listener. No
further callbacks will be issued.
This method should return quickly, as the same thread may be used to process other streams.
status
- details about the remote closurerpcProgress
- RPC progress when client stream listener is closedtrailers
- trailing metadata