T - the Subscriber data typepublic interface CoreSubscriber<T> extends Subscriber<T>
Context aware subscriber which has relaxed rules for §1.3 and §3.9
compared to the original Subscriber from Reactive Streams.
If an invalid request <= 0 is done on the received subscription, the request
will not produce an onError and will simply be ignored.
The rule relaxation has been initially established under reactive-streams-commons.
| Modifier and Type | Method and Description |
|---|---|
default Context |
currentContext()
Request a
Context from dependent components which can include downstream
operators during subscribing or a terminal Subscriber. |
void |
onSubscribe(Subscription s)
Implementors should initialize any state used by
Subscriber.onNext(Object) before
calling Subscription.request(long). |
onComplete, onError, onNextdefault Context currentContext()
Context from dependent components which can include downstream
operators during subscribing or a terminal Subscriber.Context.empty()void onSubscribe(Subscription s)
Subscriber.onNext(Object) before
calling Subscription.request(long). Should further onNext related
state modification occur, thread-safety will be required.
Note that an invalid request <= 0 will not produce an onError and
will simply be ignored or reported through a debug-enabled
Logger.
onSubscribe in interface Subscriber<T>