T - the type of item.public interface WriteStreamSubscriber<T>
extends org.reactivestreams.Subscriber<T>
WriteStream to Subscriber adapter.| Modifier and Type | Method and Description |
|---|---|
WriteStreamSubscriber<T> |
onComplete(Runnable callback)
Sets the handler to invoke on completion events.
|
WriteStreamSubscriber<T> |
onFailure(Consumer<? super Throwable> callback)
Sets the handler to invoke on failure events.
|
WriteStreamSubscriber<T> |
onWriteStreamError(Consumer<? super Throwable> callback)
Sets the handler to invoke if the adapted
WriteStream fails. |
WriteStreamSubscriber<T> onFailure(Consumer<? super Throwable> callback)
The underlying WriteStream.end() method is not invoked in this case.
callback - the callback invoked with the failureWriteStreamSubscriber<T> onComplete(Runnable callback)
The underlying WriteStream.end() method is invoked before the
given callback.
callback - the callback invoked when the completion event is receivedWriteStreamSubscriber<T> onWriteStreamError(Consumer<? super Throwable> callback)
WriteStream fails.
The underlying WriteStream.end() method is not invoked in this case.
callback - the callback invoked with the failureCopyright © 2019–2020 SmallRye. All rights reserved.