public class GrpcClientResponse<Req,Resp> extends GrpcReadStream<Resp>
messageHandler(io.vertx.core.Handler<io.vertx.rxjava3.grpc.common.GrpcMessage>)
to receive and a endHandler(io.vertx.core.Handler<java.lang.Void>)
to be notified
of the end of the response.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<GrpcClientResponse> |
__TYPE_ARG |
io.vertx.lang.rx.TypeArg<Req> |
__typeArg_0 |
io.vertx.lang.rx.TypeArg<Resp> |
__typeArg_1 |
Constructor and Description |
---|
GrpcClientResponse(GrpcClientResponse delegate) |
GrpcClientResponse(Object delegate,
io.vertx.lang.rx.TypeArg<Req> typeArg_0,
io.vertx.lang.rx.TypeArg<Resp> typeArg_1) |
Modifier and Type | Method and Description |
---|---|
<R,A> Single<R> |
collecting(java.util.stream.Collector<Resp,A,R> collector) |
GrpcClientResponse<Req,Resp> |
endHandler(Handler<Void> handler)
Set an end handler.
|
boolean |
equals(Object o) |
GrpcClientResponse<Req,Resp> |
errorHandler(Handler<GrpcError> handler)
Set a handler to be notified with gRPC errors.
|
GrpcClientResponse<Req,Resp> |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
GrpcClientResponse<Req,Resp> |
fetch(long amount)
Fetch the specified
amount of elements. |
GrpcClientResponse |
getDelegate() |
GrpcClientResponse<Req,Resp> |
handler(Handler<Resp> handler)
Set a data handler.
|
int |
hashCode() |
Single<Resp> |
last() |
GrpcClientResponse<Req,Resp> |
messageHandler(Handler<GrpcMessage> handler)
Set a handler to be notified with incoming encoded messages.
|
static <Req,Resp> GrpcClientResponse<Req,Resp> |
newInstance(GrpcClientResponse arg) |
static <Req,Resp> GrpcClientResponse<Req,Resp> |
newInstance(GrpcClientResponse arg,
io.vertx.lang.rx.TypeArg<Req> __typeArg_Req,
io.vertx.lang.rx.TypeArg<Resp> __typeArg_Resp) |
GrpcClientResponse<Req,Resp> |
pause()
Pause the
ReadStream , it sets the buffer in fetch mode and clears the actual demand. |
Pipe<Resp> |
pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Completable |
pipeTo(WriteStream<Resp> dst)
Pipe this
ReadStream to the WriteStream . |
GrpcClientResponse<Req,Resp> |
resume()
Resume reading, and sets the buffer in
flowing mode. |
<R,A> Single<R> |
rxCollecting(java.util.stream.Collector<Resp,A,R> collector) |
Single<Resp> |
rxLast() |
Completable |
rxPipeTo(WriteStream<Resp> dst)
Pipe this
ReadStream to the WriteStream . |
GrpcStatus |
status() |
Flowable<Resp> |
toFlowable() |
Observable<Resp> |
toObservable() |
String |
toString() |
MultiMap |
trailers() |
encoding, end, headers, newInstance, newInstance, rxEnd
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance, newInstance
newInstance
public static final io.vertx.lang.rx.TypeArg<GrpcClientResponse> __TYPE_ARG
public final io.vertx.lang.rx.TypeArg<Req> __typeArg_0
public final io.vertx.lang.rx.TypeArg<Resp> __typeArg_1
public GrpcClientResponse(GrpcClientResponse delegate)
public String toString()
toString
in class GrpcReadStream<Resp>
public boolean equals(Object o)
equals
in class GrpcReadStream<Resp>
public int hashCode()
hashCode
in class GrpcReadStream<Resp>
public GrpcClientResponse getDelegate()
getDelegate
in interface ReadStream<Resp>
getDelegate
in interface StreamBase
getDelegate
in class GrpcReadStream<Resp>
public Observable<Resp> toObservable()
toObservable
in interface ReadStream<Resp>
toObservable
in class GrpcReadStream<Resp>
public Flowable<Resp> toFlowable()
toFlowable
in interface ReadStream<Resp>
toFlowable
in class GrpcReadStream<Resp>
public Pipe<Resp> pipe()
WriteStream
.pipe
in interface ReadStream<Resp>
pipe
in class GrpcReadStream<Resp>
public Completable pipeTo(WriteStream<Resp> dst)
ReadStream
to the WriteStream
.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler
will be
called with the result.
pipeTo
in interface ReadStream<Resp>
pipeTo
in class GrpcReadStream<Resp>
dst
- the destination write streampublic Completable rxPipeTo(WriteStream<Resp> dst)
ReadStream
to the WriteStream
.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler
will be
called with the result.
rxPipeTo
in interface ReadStream<Resp>
rxPipeTo
in class GrpcReadStream<Resp>
dst
- the destination write streampublic Single<Resp> last()
last
in class GrpcReadStream<Resp>
public Single<Resp> rxLast()
rxLast
in class GrpcReadStream<Resp>
public GrpcStatus status()
null
when the status has not yet been receivedpublic MultiMap trailers()
public GrpcClientResponse<Req,Resp> messageHandler(Handler<GrpcMessage> handler)
GrpcReadStream
handler
is
responsible for fully decoding incoming messages, including compression.messageHandler
in class GrpcReadStream<Resp>
handler
- the message handlerpublic GrpcClientResponse<Req,Resp> errorHandler(Handler<GrpcError> handler)
GrpcReadStream
errorHandler
in class GrpcReadStream<Resp>
handler
- the error handlerpublic GrpcClientResponse<Req,Resp> exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<Resp>
exceptionHandler
in interface StreamBase
exceptionHandler
in class GrpcReadStream<Resp>
handler
- the exception handlerpublic GrpcClientResponse<Req,Resp> handler(Handler<Resp> handler)
ReadStream
handler
in interface ReadStream<Resp>
handler
in class GrpcReadStream<Resp>
public GrpcClientResponse<Req,Resp> endHandler(Handler<Void> handler)
ReadStream
endHandler
in interface ReadStream<Resp>
endHandler
in class GrpcReadStream<Resp>
public GrpcClientResponse<Req,Resp> pause()
ReadStream
ReadStream
, it sets the buffer in fetch
mode and clears the actual demand.
While it's paused, no data will be sent to the data handler
.
pause
in interface ReadStream<Resp>
pause
in class GrpcReadStream<Resp>
public GrpcClientResponse<Req,Resp> resume()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface ReadStream<Resp>
resume
in class GrpcReadStream<Resp>
public GrpcClientResponse<Req,Resp> fetch(long amount)
ReadStream
amount
of elements. If the ReadStream
has been paused, reading will
recommence with the specified amount
of items, otherwise the specified amount
will
be added to the current stream demand.fetch
in interface ReadStream<Resp>
fetch
in class GrpcReadStream<Resp>
public <R,A> Single<R> collecting(java.util.stream.Collector<Resp,A,R> collector)
collecting
in class GrpcReadStream<Resp>
collector
- public <R,A> Single<R> rxCollecting(java.util.stream.Collector<Resp,A,R> collector)
rxCollecting
in class GrpcReadStream<Resp>
collector
- public static <Req,Resp> GrpcClientResponse<Req,Resp> newInstance(GrpcClientResponse arg)
public static <Req,Resp> GrpcClientResponse<Req,Resp> newInstance(GrpcClientResponse arg, io.vertx.lang.rx.TypeArg<Req> __typeArg_Req, io.vertx.lang.rx.TypeArg<Resp> __typeArg_Resp)
Copyright © 2023 Eclipse. All rights reserved.