public final class LambdaSubscriber<T> extends java.util.concurrent.atomic.AtomicReference<java.lang.Object> implements org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription, Disposable
| Constructor and Description |
|---|
LambdaSubscriber(Consumer<? super T> onNext,
Consumer<? super java.lang.Throwable> onError,
java.lang.Runnable onComplete,
Consumer<? super org.reactivestreams.Subscription> onSubscribe) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
dispose()
Dispose the resource, the operation should be idempotent.
|
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
request(long n) |
public void onSubscribe(org.reactivestreams.Subscription s)
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 dispose()
Disposabledispose in interface Disposablepublic void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscription