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 <any> |
__TYPE_ARG |
| Constructor and Description |
|---|
CassandraRowStream(CassandraRowStream 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. |
CassandraRowStream |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Flowable<com.datastax.driver.core.Row> |
toFlowable() |
Observable<com.datastax.driver.core.Row> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic CassandraRowStream(CassandraRowStream delegate)
public CassandraRowStream getDelegate()
getDelegate in interface ReadStream<com.datastax.driver.core.Row>getDelegate in interface StreamBasepublic 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 CassandraRowStream exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<com.datastax.driver.core.Row>exceptionHandler in interface StreamBasehandler - the exception handlerpublic CassandraRowStream 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<com.datastax.driver.core.Row>public CassandraRowStream resume()
ReadStreamflowing 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)
ReadStreamendHandler in interface ReadStream<com.datastax.driver.core.Row>public CassandraRowStream 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<com.datastax.driver.core.Row>public CassandraRowStream handler(Handler<com.datastax.driver.core.Row> handler)
ReadStreamhandler in interface ReadStream<com.datastax.driver.core.Row>public static CassandraRowStream newInstance(CassandraRowStream arg)
Copyright © 2018 Eclipse. All rights reserved.