Package reactor.core
Interface CoreSubscriber<T>
- Type Parameters:
T- theSubscriberdata type
- All Superinterfaces:
Subscriber<T>
- All Known Subinterfaces:
Fuseable.ConditionalSubscriber<T>
- All Known Implementing Classes:
BaseSubscriber,DirectProcessor,EmitterProcessor,FluxProcessor,MonoProcessor,Operators.MonoSubscriber,ReplayProcessor,UnicastProcessor
A
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.
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault ContextRequest aContextfrom dependent components which can include downstream operators during subscribing or a terminalSubscriber.voidImplementors should initialize any state used bySubscriber.onNext(Object)before callingSubscription.request(long).Methods inherited from interface org.reactivestreams.Subscriber
onComplete, onError, onNext
-
Method Details
-
currentContext
Request aContextfrom dependent components which can include downstream operators during subscribing or a terminalSubscriber.- Returns:
- a resolved context or
Context.empty()
-
onSubscribe
Implementors should initialize any state used bySubscriber.onNext(Object)before callingSubscription.request(long). Should furtheronNextrelated state modification occur, thread-safety will be required.Note that an invalid request
<= 0will not produce an onError and will simply be ignored or reported through a debug-enabledLogger.- Specified by:
onSubscribein interfaceSubscriber<T>
-