public class DefaultSubscriber<O> extends Object implements org.reactivestreams.Subscriber<O>, NonBlocking
| Constructor and Description |
|---|
DefaultSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCapacity()
Return defined element capacity, used to drive new
Subscription
request needs. |
boolean |
isReactivePull(Dispatcher dispatcher,
long producerCapacity)
Get the assigned
Dispatcher. |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(O o) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<O>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<O>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<O>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 NonBlockingCopyright © 2016. All rights reserved.