public abstract class AbstractListenerWriteFlushProcessor<T> extends Object implements org.reactivestreams.Processor<org.reactivestreams.Publisher<? extends T>,Void>
AbstractListenerWriteProcessor
but instead writing
a Publisher<Publisher<T>>
with flush boundaries enforces after
the completion of each nested Publisher.Constructor and Description |
---|
AbstractListenerWriteFlushProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
Listeners can call this method to cancel further writing.
|
protected abstract org.reactivestreams.Processor<? super T,Void> |
createWriteProcessor()
Create a new processor for subscribing to the next flush boundary.
|
protected abstract void |
flush()
Flush the output.
|
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(org.reactivestreams.Publisher<? extends T> publisher) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
void |
subscribe(org.reactivestreams.Subscriber<? super Void> subscriber) |
protected final Log logger
public final void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe
in interface org.reactivestreams.Subscriber<org.reactivestreams.Publisher<? extends T>>
public final void onNext(org.reactivestreams.Publisher<? extends T> publisher)
onNext
in interface org.reactivestreams.Subscriber<org.reactivestreams.Publisher<? extends T>>
public final void onError(Throwable t)
onError
in interface org.reactivestreams.Subscriber<org.reactivestreams.Publisher<? extends T>>
public final void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<org.reactivestreams.Publisher<? extends T>>
public final void subscribe(org.reactivestreams.Subscriber<? super Void> subscriber)
subscribe
in interface org.reactivestreams.Publisher<Void>
protected void cancel()
protected abstract org.reactivestreams.Processor<? super T,Void> createWriteProcessor()
protected abstract void flush() throws IOException
IOException