public interface CassandraRowStream extends ReadStream<com.datastax.driver.core.Row>
ReadStream for Row consumption.| Modifier and Type | Method and Description |
|---|---|
CassandraRowStream |
endHandler(Handler<Void> handler)
Set an end handler.
|
CassandraRowStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
CassandraRowStream |
fetch(long l)
Fetch the specified
amount of elements. |
CassandraRowStream |
handler(Handler<com.datastax.driver.core.Row> handler)
Set a data handler.
|
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. |
pipe, pipeTo, pipeToCassandraRowStream exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<com.datastax.driver.core.Row>exceptionHandler in interface StreamBasehandler - the exception handlerCassandraRowStream handler(Handler<com.datastax.driver.core.Row> handler)
ReadStreamhandler in interface ReadStream<com.datastax.driver.core.Row>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>CassandraRowStream resume()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<com.datastax.driver.core.Row>CassandraRowStream endHandler(Handler<Void> handler)
ReadStreamendHandler in interface ReadStream<com.datastax.driver.core.Row>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>Copyright © 2021 Eclipse. All rights reserved.