Package io.reactivex.rxjava3.core
Interface FlowableSubscriber<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
org.reactivestreams.Subscriber<T>
- All Known Subinterfaces:
ConditionalSubscriber<T>
- All Known Implementing Classes:
AsyncProcessor,BasicFuseableConditionalSubscriber,BasicFuseableSubscriber,BehaviorProcessor,BlockingBaseSubscriber,BlockingFirstSubscriber,BlockingLastSubscriber,BlockingSubscriber,BoundedSubscriber,ConcatMapXMainSubscriber,DefaultSubscriber,DeferredScalarSubscriber,DisposableAutoReleaseSubscriber,DisposableSubscriber,EmptyComponent,FlowableCache,FlowableFirstStageSubscriber,FlowableGroupBy.GroupBySubscriber,FlowableLastStageSubscriber,FlowableOnErrorComplete.OnErrorCompleteSubscriber,FlowableProcessor,FlowableSingleStageSubscriber,ForEachWhileSubscriber,FutureSubscriber,InnerQueuedSubscriber,LambdaSubscriber,MulticastProcessor,PublishProcessor,QueueDrainSubscriber,ReplayProcessor,ResourceSubscriber,SafeSubscriber,SerializedSubscriber,SinglePostCompleteSubscriber,StrictSubscriber,SubscriberResourceWrapper,TestSubscriber,UnicastProcessor
Represents a Reactive-Streams inspired
Subscriber that is RxJava 3 only
and weakens the Reactive Streams rules §1.3
and §3.9 of the specification
for gaining performance.
History: 2.0.7 - experimental; 2.1 - beta
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidonSubscribe(@NonNull org.reactivestreams.Subscription s) Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long).Methods inherited from interface org.reactivestreams.Subscriber
onComplete, onError, onNext
-
Method Details
-
onSubscribe
Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long). In practice this means no initialization should happen after therequest()call and additional behavior is thread safe in respect toonNext.- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>
-