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