| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private WriteStream | |
| private boolean | |
| private boolean | |
| private final Promise | |
| private final ReadStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public synchronized Pipe | endOnComplete(boolean
true to end the stream on a source ReadStream completionImplements io. Set to |
| public synchronized Pipe | endOnFailure(boolean
true to end the stream on a source ReadStream failureImplements io. Set to |
| public synchronized Pipe | endOnSuccess(boolean
true to end the stream on a source ReadStream successImplements io. Set to |
| private void | |
| private void | |
| private void | |
| public void | to(WriteStream<T>
the destination write stream ws, Handler<AsyncResult<Void>> the handler called when the pipe operation completes completionHandler)Implements io. Start to pipe the elements to the destination |
| dst | back to summary |
|---|---|
| private WriteStream<T> dst | |
| endOnFailure | back to summary |
|---|---|
| private boolean endOnFailure | |
| endOnSuccess | back to summary |
|---|---|
| private boolean endOnSuccess | |
| result | back to summary |
|---|---|
| private final Promise<Void> result | |
| src | back to summary |
|---|---|
| private final ReadStream<T> src | |
| PipeImpl | back to summary |
|---|---|
| public PipeImpl(ReadStream<T> src) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the pipe. The streams handlers will be unset and the read stream resumed unless it is already ended. | |
| endOnComplete | back to summary |
|---|---|
| public synchronized Pipe Implements io. Doc from io. Set to
Calling this overwrites | |
| endOnFailure | back to summary |
|---|---|
| public synchronized Pipe Implements io. Doc from io. Set to | |
| endOnSuccess | back to summary |
|---|---|
| public synchronized Pipe Implements io. Doc from io. Set to | |
| handleFailure | back to summary |
|---|---|
| private void handleFailure(Throwable cause, Handler<AsyncResult<Void>> completionHandler) | |
| handleSuccess | back to summary |
|---|---|
| private void handleSuccess(Handler<AsyncResult<Void>> completionHandler) | |
| handleWriteResult | back to summary |
|---|---|
| private void handleWriteResult(AsyncResult<Void> ack) | |
| to | back to summary |
|---|---|
| public void to(WriteStream<T> ws, Handler<AsyncResult<Void>> completionHandler) Implements io. Doc from io. Start to pipe the elements to the destination When the operation fails with a write error, the source stream is resumed.
| |
| Access | Constructor and Description |
|---|---|
| private |
| WriteException | back to summary |
|---|---|
| private WriteException(Throwable cause) | |