public final class SubscriptionLambdaSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
| Constructor and Description |
|---|
SubscriptionLambdaSubscriber(org.reactivestreams.Subscriber<? super T> actual,
Consumer<? super org.reactivestreams.Subscription> onSubscribe,
LongConsumer onRequest,
java.lang.Runnable onCancel) |
| 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) |
void |
request(long n) |
public SubscriptionLambdaSubscriber(org.reactivestreams.Subscriber<? super T> actual, Consumer<? super org.reactivestreams.Subscription> onSubscribe, LongConsumer onRequest, java.lang.Runnable onCancel)
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 request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscription