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) |
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. |
rx.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 getDelegate()
getDelegate
in interface ReadStream<com.datastax.driver.core.Row>
getDelegate
in interface StreamBase
public rx.Observable<com.datastax.driver.core.Row> toObservable()
toObservable
in interface ReadStream<com.datastax.driver.core.Row>
public 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 © 2018 Eclipse. All rights reserved.