Uses of Interface
org.reactivestreams.Subscriber
Packages that use Subscriber
Package
Description
-
Uses of Subscriber in org.reactivestreams
Subinterfaces of Subscriber in org.reactivestreamsModifier and TypeInterfaceDescriptioninterfaceProcessor<T,R> AProcessorrepresents a processing stage—which is both aSubscriberand aPublisherand obeys the contracts of both.Methods in org.reactivestreams that return SubscriberModifier and TypeMethodDescriptionstatic <T> Subscriber<T> FlowAdapters.toSubscriber(Flow.Subscriber<T> flowSubscriber) Converts a Flow Subscriber into a Reactive Streams Subscriber.Methods in org.reactivestreams with parameters of type SubscriberModifier and TypeMethodDescriptionvoidPublisher.subscribe(Subscriber<? super T> s) RequestPublisherto start streaming data.static <T> Flow.Subscriber<T> FlowAdapters.toFlowSubscriber(Subscriber<T> reactiveStreamsSubscriber) Converts a Reactive Streams Subscriber into a Flow Subscriber. -
Uses of Subscriber in org.reactivestreams.example.unicast
Classes in org.reactivestreams.example.unicast that implement SubscriberModifier and TypeClassDescriptionclassAsyncSubscriber is an implementation of Reactive Streams `Subscriber`, it runs asynchronously (on an Executor), requests one element at a time, and invokes a user-defined method to process each element.classSyncSubscriber is an implementation of Reactive Streams `Subscriber`, it runs synchronously (on the Publisher's thread) and requests one element at a time and invokes a user-defined method to process each element.Methods in org.reactivestreams.example.unicast with parameters of type SubscriberModifier and TypeMethodDescriptionvoidAsyncIterablePublisher.subscribe(Subscriber<? super T> s) voidRangePublisher.subscribe(Subscriber<? super Integer> subscriber) -
Uses of Subscriber in org.reactivestreams.tck
Classes in org.reactivestreams.tck that implement SubscriberModifier and TypeClassDescriptionclassstatic classThis class is intented to be used asSubscriberdecorator and should be used inpub.subscriber(...)calls, in order to allow intercepting calls on the underlyingSubscriber.static classSimilar toTestEnvironment.ManualSubscriberWithSubscriptionSupportbut does not accumulate values signalled viaonNext, thus it can not be used to assert values signalled to this subscriber.static classSubscriberimplementation which can be steered by test code and asserted on.static classstatic classFields in org.reactivestreams.tck with type parameters of type SubscriberModifier and TypeFieldDescriptionprotected final TestEnvironment.Promise<Subscriber<? super T>> SubscriberWhiteboxVerification.BlackboxProbe.subscriberprotected TestEnvironment.Promise<Subscriber<? super T>> TestEnvironment.ManualPublisher.subscriberMethods in org.reactivestreams.tck that return SubscriberModifier and TypeMethodDescriptionIdentityProcessorVerification.createSubscriber(SubscriberWhiteboxVerification.WhiteboxSubscriberProbe<T> probe) /////////////////// SUBSCRIBER RULES VERIFICATION ///////////////////////////abstract Subscriber<T> SubscriberBlackboxVerification.createSubscriber()This is the main method you must implement in your test incarnation.abstract Subscriber<T> SubscriberWhiteboxVerification.createSubscriber(SubscriberWhiteboxVerification.WhiteboxSubscriberProbe<T> probe) This is the main method you must implement in your test incarnation.Subscriber<? super T> SubscriberBlackboxVerification.BlackboxTestStage.sub()Subscriber<? super T> SubscriberWhiteboxVerification.BlackboxProbe.sub()Subscriber<? super T> SubscriberWhiteboxVerification.WhiteboxTestStage.sub()Methods in org.reactivestreams.tck with parameters of type SubscriberModifier and TypeMethodDescriptionSubscriberBlackboxVerification.BlackboxTestStage.createBlackboxSubscriberProxy(TestEnvironment env, Subscriber<T> sub) voidTestEnvironment.ManualPublisher.subscribe(Subscriber<? super T> s) voidSubscriberBlackboxVerification.triggerRequest(Subscriber<? super T> subscriber) Override this method if the Subscriber implementation you are verifying needs an external signal before it signals demand to its Publisher.Constructors in org.reactivestreams.tck with parameters of type SubscriberModifierConstructorDescriptionBlackboxSubscriberProxy(TestEnvironment env, Subscriber<T> subscriber) Constructor parameters in org.reactivestreams.tck with type arguments of type SubscriberModifierConstructorDescriptionBlackboxProbe(TestEnvironment env, TestEnvironment.Promise<Subscriber<? super T>> subscriber) WhiteboxSubscriberProbe(TestEnvironment env, TestEnvironment.Promise<Subscriber<? super T>> subscriber) -
Uses of Subscriber in org.reactivestreams.tck.flow
Methods in org.reactivestreams.tck.flow that return SubscriberModifier and TypeMethodDescriptionfinal Subscriber<T> FlowSubscriberBlackboxVerification.createSubscriber()final Subscriber<T> FlowSubscriberWhiteboxVerification.createSubscriber(SubscriberWhiteboxVerification.WhiteboxSubscriberProbe<T> probe) Methods in org.reactivestreams.tck.flow with parameters of type SubscriberModifier and TypeMethodDescriptionfinal voidFlowSubscriberBlackboxVerification.triggerRequest(Subscriber<? super T> subscriber)