Any class that implements this interface can be used by a Pipe to pipe data from it
to a WriteStream.
handler.handler.pause(), resume() and fetch methods:
resume() sets the flowing modepause() sets the fetch mode and resets the demand to 0fetch(long) requests a specific amount of elements and adds it to the actual demand| Modifier and Type | Method and Description |
|---|---|
| public default <R, A> Future | |
| public ReadStream | Returns: a reference to this, so the API can be used fluentlySet an end handler. |
| public ReadStream | Returns: a reference to this, so the API can be used fluentlythe exception handler handler)Set an exception handler on the read stream. |
| public ReadStream | Returns: a reference to this, so the API can be used fluentlyFetch the specified |
| public ReadStream | |
| public ReadStream | Returns: a reference to this, so the API can be used fluentlyPause the |
| public default Pipe | Returns: a pipePause this stream and return a |
| public default Future | pipeTo(WriteStream<T> dst)
Same as |
| public default void | pipeTo(WriteStream<T>
the destination write stream dst, Handler<AsyncResult<Void>> handler)Pipe this |
| public ReadStream | Returns: a reference to this, so the API can be used fluentlyResume reading, and sets the buffer in |
| collect | back to summary |
|---|---|
| public default <R, A> Future Apply a Handlers of this stream are affected by this operation.
| |
| endHandler | back to summary |
|---|---|
| public ReadStream Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.
| |
| exceptionHandler | back to summary |
|---|---|
| public ReadStream Set an exception handler on the read stream.
| |
| fetch | back to summary |
|---|---|
| public ReadStream Fetch the specified
| |
| handler | back to summary |
|---|---|
| public ReadStream Set a data handler. As data is read, the handler will be called with the data.
| |
| pause | back to summary |
|---|---|
| public ReadStream Pause the
While it's paused, no data will be sent to the data
| |
| pipe | back to summary |
|---|---|
| public default Pipe Pause this stream and return a
The stream will be resumed when the pipe will be wired to a
| |
| pipeTo | back to summary |
|---|---|
| public default Future Same as | |
| pipeTo | back to summary |
|---|---|
| public default void pipeTo(WriteStream<T> dst, Handler<AsyncResult<Void>> handler) Pipe this Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the
| |
| resume | back to summary |
|---|---|
| public ReadStream Resume reading, and sets the buffer in
If the
| |