public class SwitchAction.SwitchSubscriber extends Object implements NonBlocking, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
| Constructor and Description |
|---|
SwitchSubscriber(org.reactivestreams.Publisher<? extends T> publisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
long |
getCapacity()
Return defined element capacity, used to drive new
Subscription
request needs. |
org.reactivestreams.Subscription |
getSubscription() |
boolean |
isReactivePull(Dispatcher dispatcher,
long producerCapacity)
Get the assigned
Dispatcher. |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
request(long n) |
public SwitchSubscriber(org.reactivestreams.Publisher<? extends T> publisher)
public boolean isReactivePull(Dispatcher dispatcher, long producerCapacity)
NonBlockingDispatcher.isReactivePull in interface NonBlockingpublic long getCapacity()
NonBlockingSubscription
request needs. This is the maximum in-flight data allowed to transit to this elements.getCapacity in interface NonBlockingpublic void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>public void onError(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.Subscriptionpublic org.reactivestreams.Subscription getSubscription()
Copyright © 2016. All rights reserved.