public interface GrpcServerResponse<Req,Resp> extends GrpcWriteStream<Resp>
| Modifier and Type | Method and Description |
|---|---|
GrpcServerResponse<Req,Resp> |
drainHandler(io.vertx.core.Handler<Void> handler) |
GrpcServerResponse<Req,Resp> |
encoding(String encoding) |
GrpcServerResponse<Req,Resp> |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
default io.vertx.core.Future<Void> |
send(io.vertx.core.streams.ReadStream<Resp> body) |
default io.vertx.core.Future<Void> |
send(Resp item) |
GrpcServerResponse<Req,Resp> |
setWriteQueueMaxSize(int maxSize) |
GrpcServerResponse<Req,Resp> |
status(GrpcStatus status)
Set the grpc status response
|
GrpcServerResponse<Req,Resp> |
statusMessage(String msg)
Set the grpc status response message
|
io.vertx.core.MultiMap |
trailers() |
cancel, endMessage, headers, writeMessageGrpcServerResponse<Req,Resp> status(GrpcStatus status)
status - the statusGrpcServerResponse<Req,Resp> statusMessage(String msg)
msg - the messageGrpcServerResponse<Req,Resp> encoding(String encoding)
encoding in interface GrpcWriteStream<Resp>io.vertx.core.MultiMap trailers()
MultiMap to write metadata trailersGrpcServerResponse<Req,Resp> exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface GrpcWriteStream<Resp>exceptionHandler in interface io.vertx.core.streams.StreamBaseexceptionHandler in interface io.vertx.core.streams.WriteStream<Resp>GrpcServerResponse<Req,Resp> setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize in interface GrpcWriteStream<Resp>setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<Resp>GrpcServerResponse<Req,Resp> drainHandler(io.vertx.core.Handler<Void> handler)
drainHandler in interface GrpcWriteStream<Resp>drainHandler in interface io.vertx.core.streams.WriteStream<Resp>Copyright © 2024 Eclipse. All rights reserved.