public interface RowStream<T> extends ReadStream<T>
Modifier and Type | Method and Description |
---|---|
Future<Void> |
close()
Close the stream and release the resources.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
Close the stream and release the resources.
|
RowStream<T> |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
RowStream<T> |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
RowStream<T> |
fetch(long l)
Fetch the specified
amount of elements. |
RowStream<T> |
handler(Handler<T> handler)
Set a data handler.
|
RowStream<T> |
pause()
Pause the
ReadStream , it sets the buffer in fetch mode and clears the actual demand. |
RowStream<T> |
resume()
Resume reading, and sets the buffer in
flowing mode. |
pipe, pipeTo, pipeTo
RowStream<T> exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<T>
exceptionHandler
in interface StreamBase
handler
- the exception handlerRowStream<T> handler(Handler<T> handler)
ReadStream
handler
in interface ReadStream<T>
RowStream<T> 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<T>
RowStream<T> resume()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface ReadStream<T>
RowStream<T> endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<T>
RowStream<T> 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<T>
void close(Handler<AsyncResult<Void>> completionHandler)
completionHandler
- the completion handler for this operationCopyright © 2022 Eclipse. All rights reserved.