public class RowStream<T> extends Object implements ReadStream<T>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<RowStream> |
__TYPE_ARG |
io.vertx.lang.rx.TypeArg<T> |
__typeArg_0 |
Constructor and Description |
---|
RowStream(Object delegate,
io.vertx.lang.rx.TypeArg<T> typeArg_0) |
RowStream(RowStream delegate) |
Modifier and Type | Method and Description |
---|---|
Completable |
close()
Close the stream and release the resources.
|
RowStream<T> |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
boolean |
equals(Object o) |
RowStream<T> |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
RowStream<T> |
fetch(long l)
Fetch the specified
amount of elements. |
RowStream |
getDelegate() |
RowStream<T> |
handler(Handler<T> handler)
Set a data handler.
|
int |
hashCode() |
static <T> RowStream<T> |
newInstance(RowStream arg) |
static <T> RowStream<T> |
newInstance(RowStream arg,
io.vertx.lang.rx.TypeArg<T> __typeArg_T) |
RowStream<T> |
pause()
Pause the
ReadStream , it sets the buffer in fetch mode and clears the actual demand. |
Pipe<T> |
pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Completable |
pipeTo(WriteStream<T> dst)
Pipe this
ReadStream to the WriteStream . |
RowStream<T> |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Completable |
rxClose()
Close the stream and release the resources.
|
Completable |
rxPipeTo(WriteStream<T> dst)
Pipe this
ReadStream to the WriteStream . |
Flowable<T> |
toFlowable() |
Observable<T> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance, newInstance
newInstance
public static final io.vertx.lang.rx.TypeArg<RowStream> __TYPE_ARG
public final io.vertx.lang.rx.TypeArg<T> __typeArg_0
public RowStream(RowStream delegate)
public RowStream getDelegate()
getDelegate
in interface ReadStream<T>
getDelegate
in interface StreamBase
public Observable<T> toObservable()
toObservable
in interface ReadStream<T>
public Flowable<T> toFlowable()
toFlowable
in interface ReadStream<T>
public Pipe<T> pipe()
WriteStream
.pipe
in interface ReadStream<T>
public Completable pipeTo(WriteStream<T> 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<T>
dst
- the destination write streampublic Completable rxPipeTo(WriteStream<T> 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<T>
dst
- the destination write streampublic RowStream<T> exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<T>
exceptionHandler
in interface StreamBase
handler
- the exception handlerpublic RowStream<T> handler(Handler<T> handler)
ReadStream
handler
in interface ReadStream<T>
public RowStream<T> 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<T>
public RowStream<T> resume()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface ReadStream<T>
public RowStream<T> endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<T>
public RowStream<T> fetch(long l)
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<T>
public Completable close()
public Completable rxClose()
Copyright © 2023 Eclipse. All rights reserved.