public interface GrpcReadStream<T>
extends io.vertx.core.streams.ReadStream<T>
| Modifier and Type | Method and Description |
|---|---|
default <R,A> io.vertx.core.Future<R> |
collecting(Collector<T,A,R> collector)
Deprecated.
instead use
ReadStream.collect(Collector) |
String |
encoding() |
io.vertx.core.Future<Void> |
end() |
GrpcReadStream<T> |
endHandler(io.vertx.core.Handler<Void> handler) |
GrpcReadStream<T> |
errorHandler(io.vertx.core.Handler<GrpcError> handler)
Set a handler to be notified with gRPC errors.
|
GrpcReadStream<T> |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
GrpcReadStream<T> |
fetch(long l) |
GrpcReadStream<T> |
handler(io.vertx.core.Handler<T> handler) |
io.vertx.core.MultiMap |
headers() |
GrpcReadStream<T> |
invalidMessageHandler(io.vertx.core.Handler<InvalidMessageException> handler)
Set a message handler that is reported with invalid message errors.
|
io.vertx.core.Future<T> |
last() |
GrpcReadStream<T> |
messageHandler(io.vertx.core.Handler<GrpcMessage> handler)
Set a handler to be notified with incoming encoded messages.
|
GrpcReadStream<T> |
pause() |
GrpcReadStream<T> |
resume() |
io.vertx.core.MultiMap headers()
MultiMap to read metadata headersString encoding()
identity or gzipGrpcReadStream<T> messageHandler(io.vertx.core.Handler<GrpcMessage> handler)
handler is
responsible for fully decoding incoming messages, including compression.handler - the message handlerGrpcReadStream<T> invalidMessageHandler(io.vertx.core.Handler<InvalidMessageException> handler)
Warning: setting this handler overwrite the default handler which takes appropriate measure when an invalid message is encountered such as cancelling the stream. This handler should be set when control over invalid messages is required.
handler - the invalid message handlerGrpcReadStream<T> errorHandler(io.vertx.core.Handler<GrpcError> handler)
handler - the error handlerGrpcReadStream<T> exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.streams.ReadStream<T>exceptionHandler in interface io.vertx.core.streams.StreamBaseGrpcReadStream<T> handler(io.vertx.core.Handler<T> handler)
handler in interface io.vertx.core.streams.ReadStream<T>GrpcReadStream<T> pause()
pause in interface io.vertx.core.streams.ReadStream<T>GrpcReadStream<T> resume()
resume in interface io.vertx.core.streams.ReadStream<T>GrpcReadStream<T> fetch(long l)
fetch in interface io.vertx.core.streams.ReadStream<T>GrpcReadStream<T> endHandler(io.vertx.core.Handler<Void> handler)
endHandler in interface io.vertx.core.streams.ReadStream<T>io.vertx.core.Future<T> last()
io.vertx.core.Future<Void> end()
@Deprecated default <R,A> io.vertx.core.Future<R> collecting(Collector<T,A,R> collector)
ReadStream.collect(Collector)Copyright © 2024 Eclipse. All rights reserved.