T - the value typepublic abstract class DefaultSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>
request(long), cancelling via
via cancel() (both synchronously) and calls onStart()
when the subscription happens.| Constructor and Description |
|---|
DefaultSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
Cancels the upstream's Subscription.
|
protected void |
onStart()
Called once the subscription has been set on this observer; override this
to perform initialization or issue an initial request.
|
void |
onSubscribe(org.reactivestreams.Subscription s) |
protected void |
request(long n)
Requests from the upstream Subscription.
|
public final void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>protected final void request(long n)
protected final void cancel()
protected void onStart()
The default implementation requests Long.MAX_VALUE.