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, pipeTo
CassandraRowStream exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<com.datastax.driver.core.Row>
exceptionHandler
in interface StreamBase
handler
- the exception handlerCassandraRowStream handler(Handler<com.datastax.driver.core.Row> handler)
ReadStream
handler
in interface ReadStream<com.datastax.driver.core.Row>
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>
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>
CassandraRowStream endHandler(Handler<Void> handler)
ReadStream
endHandler
in interface ReadStream<com.datastax.driver.core.Row>
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>
Copyright © 2023 Eclipse. All rights reserved.