public abstract class MultiOperatorProcessor<I,O> extends Object implements MultiSubscriber<I>, org.reactivestreams.Subscription
| Modifier and Type | Field and Description |
|---|---|
protected MultiSubscriber<? super O> |
downstream |
protected AtomicReference<org.reactivestreams.Subscription> |
upstream |
| Constructor and Description |
|---|
MultiOperatorProcessor(MultiSubscriber<? super O> downstream) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
protected boolean |
isCancelled() |
protected boolean |
isDone() |
void |
onCompletion()
Method called when the upstream emits a
completion terminal event. |
void |
onFailure(Throwable throwable)
Method called when the upstream emits a
failure terminal event. |
void |
onItem(I item)
Method called when the upstream emits an
item event, in response to to requests to
Subscription.request(long). |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
void |
request(long numberOfItems) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNextprotected final MultiSubscriber<? super O> downstream
protected AtomicReference<org.reactivestreams.Subscription> upstream
public MultiOperatorProcessor(MultiSubscriber<? super O> downstream)
protected boolean isDone()
protected boolean isCancelled()
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<I>public void onFailure(Throwable throwable)
MultiSubscriberfailure terminal event.
No further events will be sent even if Subscription.request(long) is invoked again.
onFailure in interface MultiSubscriber<I>throwable - the failure, must not be null.public void onItem(I item)
MultiSubscriberitem event, in response to to requests to
Subscription.request(long).onItem in interface MultiSubscriber<I>item - the item, must not be null.public void onCompletion()
MultiSubscribercompletion terminal event.
No further events will be sent even if Subscription.request(long) is invoked again.
onCompletion in interface MultiSubscriber<I>public void request(long numberOfItems)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.SubscriptionCopyright © 2019–2020 SmallRye. All rights reserved.