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)
NonBlocking
Dispatcher
.isReactivePull
in interface NonBlocking
public long getCapacity()
NonBlocking
Subscription
request needs. This is the maximum in-flight data allowed to transit to this elements.getCapacity
in interface NonBlocking
public 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.Subscription
public void cancel()
cancel
in interface org.reactivestreams.Subscription
public org.reactivestreams.Subscription getSubscription()
Copyright © 2017. All rights reserved.