T - the value typepublic final class SafeSubscriber<T> extends java.lang.Object implements FlowableSubscriber<T>, org.reactivestreams.Subscription
| Constructor and Description |
|---|
SafeSubscriber(org.reactivestreams.Subscriber<? super T> actual)
Constructs a SafeSubscriber by wrapping the given actual Subscriber.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s)
Implementors of this method should make sure everything that needs
to be visible in
Subscriber.onNext(Object) is established before
calling Subscription.request(long). |
void |
request(long n) |
public SafeSubscriber(org.reactivestreams.Subscriber<? super T> actual)
actual - the actual Subscriber to wrap, not null (not validated)public void onSubscribe(org.reactivestreams.Subscription s)
FlowableSubscriberSubscriber.onNext(Object) is established before
calling Subscription.request(long). In practice this means
no initialization should happen after the request() call and
additional behavior is thread safe in respect to onNext.
onSubscribe in interface FlowableSubscriber<T>onSubscribe in interface org.reactivestreams.Subscriber<T>public void onError(java.lang.Throwable t)
onError in interface org.reactivestreams.Subscriber<T>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>public void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscription