public interface GrpcWriteStream<T> extends WriteStream<T>
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the stream.
|
GrpcWriteStream<T> |
drainHandler(Handler<Void> handler) |
GrpcWriteStream<T> |
encoding(String encoding)
Set the stream encoding, e.g
identity or gzip. |
Future<Void> |
endMessage(GrpcMessage message)
End the stream with an encoded gRPC message.
|
GrpcWriteStream<T> |
exceptionHandler(Handler<Throwable> handler) |
MultiMap |
headers() |
GrpcWriteStream<T> |
setWriteQueueMaxSize(int i) |
Future<Void> |
writeMessage(GrpcMessage message)
Write an encoded gRPC message.
|
end, end, end, end, write, write, writeQueueFullGrpcWriteStream<T> encoding(String encoding)
identity or gzip.
It must be called before sending any message, otherwise {@code identity will be used.encoding - the target message encodingGrpcWriteStream<T> exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface StreamBaseexceptionHandler in interface WriteStream<T>GrpcWriteStream<T> setWriteQueueMaxSize(int i)
setWriteQueueMaxSize in interface WriteStream<T>GrpcWriteStream<T> drainHandler(Handler<Void> handler)
drainHandler in interface WriteStream<T>Future<Void> writeMessage(GrpcMessage message)
message - the messageFuture<Void> endMessage(GrpcMessage message)
message - the messagevoid cancel()
Copyright © 2023 Eclipse. All rights reserved.