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 |
|---|---|
void |
close()
Close the stream and release the resources.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
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 .
|
void |
pipeTo(WriteStream<T> dst)
Pipe this
ReadStream to the WriteStream. |
void |
pipeTo(WriteStream<T> dst,
Handler<AsyncResult<Void>> handler)
Pipe this
ReadStream to the WriteStream. |
RowStream<T> |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Single<Void> |
rxClose()
Close the stream and release the resources.
|
Single<Void> |
rxPipeTo(WriteStream<T> dst)
Pipe this
ReadStream to the WriteStream. |
Observable<T> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic 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 StreamBasepublic Observable<T> toObservable()
toObservable in interface ReadStream<T>public Pipe<T> pipe()
WriteStream.pipe in interface ReadStream<T>public void pipeTo(WriteStream<T> dst, Handler<AsyncResult<Void>> handler)
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 streamhandler - public void 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 Single<Void> 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)
ReadStreamexceptionHandler in interface ReadStream<T>exceptionHandler in interface StreamBasehandler - the exception handlerpublic RowStream<T> handler(Handler<T> handler)
ReadStreamhandler in interface ReadStream<T>public RowStream<T> pause()
ReadStreamReadStream, 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()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<T>public RowStream<T> endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<T>public RowStream<T> fetch(long l)
ReadStreamamount 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 void close(Handler<AsyncResult<Void>> completionHandler)
completionHandler - the completion handler for this operationpublic void close()
Copyright © 2021 Eclipse. All rights reserved.