protected static interface AbstractClientStream.Sink
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(io.grpc.Status status)
Tears down the stream, typically in the event of a timeout.
|
void |
request(int numMessages)
Requests up to the given number of messages from the call to be delivered to the client.
|
void |
writeFrame(WritableBuffer frame,
boolean endOfStream,
boolean flush,
int numMessages)
Sends an outbound frame to the remote end point.
|
void |
writeHeaders(io.grpc.Metadata metadata,
byte[] payload)
Sends the request headers to the remote end point.
|
void writeHeaders(io.grpc.Metadata metadata,
@Nullable
byte[] payload)
metadata - the metadata to be sentpayload - the payload needs to be sent in the headers if not null. Should only be used
when sending an unary GET requestvoid writeFrame(@Nullable WritableBuffer frame, boolean endOfStream, boolean flush, int numMessages)
frame - a buffer containing the chunk of data to be sent, or null if endOfStream with no data to sendendOfStream - true if this is the last frame; flush is guaranteed to be
true if this is trueflush - true if more data may not be arriving soonvoid request(int numMessages)
AbstractStream.TransportState.requestMessagesFromDeframer(int) on the
transport thread.void cancel(io.grpc.Status status)
This is a clone of ClientStream.cancel(Status);
AbstractClientStream.cancel(io.grpc.Status) delegates to this method.