T - the type of itempublic class StrictMultiSubscriber<T> extends Object implements MultiSubscriber<T>, org.reactivestreams.Subscription
| Constructor and Description |
|---|
StrictMultiSubscriber(org.reactivestreams.Subscriber<? super T> downstream) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
onCompletion()
Method called when the upstream emits a
completion terminal event. |
void |
onFailure(Throwable t)
Method called when the upstream emits a
failure terminal event. |
void |
onItem(T t)
Method called when the upstream emits an
item event, in response to to requests to
Subscription.request(long). |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
request(long n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNextpublic StrictMultiSubscriber(org.reactivestreams.Subscriber<? super T> downstream)
public void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>public void onItem(T t)
MultiSubscriberitem event, in response to to requests to
Subscription.request(long).onItem in interface MultiSubscriber<T>t - the item, must not be null.public void onFailure(Throwable t)
MultiSubscriberfailure terminal event.
No further events will be sent even if Subscription.request(long) is invoked again.
onFailure in interface MultiSubscriber<T>t - the failure, 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<T>Copyright © 2019–2020 SmallRye. All rights reserved.