Uses of Interface
rx.Observer
-
Packages that use Observer Package Description rx Base reactive classes: Observable, Single and Completable; base reactive consumers; other common base interfaces.rx.exceptions Exception handling utilities, safe subscriber exception classes, lifecycle exception classes.rx.internal.operators Operators that allow composing Observables to transform and manipulate data in an asynchronous, functional and thread-safe manner.rx.internal.producers rx.internal.schedulers rx.internal.util rx.observables Classes extending the Observable base reactive class, synchronous and asynchronous event generators.rx.observers Default wrappers and implementations for the base reactive consumer classes and interfaces; utility classes for creating them from callbacks.rx.subjects Classes extending the Observable base reactive class and implementing the Observer interface at the same time (aka hot Observables). -
-
Uses of Observer in rx
Subinterfaces of Observer in rx Modifier and Type Interface Description interfaceAsyncEmitter<T>Abstraction over a RxJava Subscriber that allows associating a resource with it and exposes the current number of downstream requested amount.Classes in rx that implement Observer Modifier and Type Class Description classSubscriber<T>Provides a mechanism for receiving push-based notifications from Observables, and permits manual unsubscribing from these Observables.Methods in rx with parameters of type Observer Modifier and Type Method Description voidNotification. accept(Observer<? super T> observer)Forwards this notification on to a specifiedObserver.Observable<T>Observable. doOnEach(Observer<? super T> observer)Modifies the source Observable so that it notifies an Observer for each item and terminal event it emits.SubscriptionObservable. subscribe(Observer<? super T> observer)Subscribes to an Observable and provides an Observer that implements functions to handle the items the Observable emits and any error or completion notification it issues.SubscriptionSingle. subscribe(Observer<? super T> observer)Subscribes an Observer to this single and returns a Subscription that allows unsubscription. -
Uses of Observer in rx.exceptions
Methods in rx.exceptions with parameters of type Observer Modifier and Type Method Description static voidExceptions. throwOrReport(java.lang.Throwable t, Observer<?> o)Forwards a fatal exception or reports it to the given Observer.static voidExceptions. throwOrReport(java.lang.Throwable t, Observer<?> o, java.lang.Object value)Forwards a fatal exception or reports it along with the value caused it to the given Observer. -
Uses of Observer in rx.internal.operators
Classes in rx.internal.operators that implement Observer Modifier and Type Class Description (package private) static classBlockingOperatorLatest.LatestObserverIterator<T>Observer of source, iterator for output.(package private) static classBlockingOperatorMostRecent.MostRecentObserver<T>(package private) static classBlockingOperatorNext.NextObserver<T>static classBlockingOperatorToIterator.SubscriberIterator<T>classBufferUntilSubscriber<T>A solution to the "time gap" problem that occurs withgroupByandpivot.(package private) static classCachedObservable.CacheState<T>Contains the active child producers and the values to replay.(package private) static classCompletableOnSubscribeConcat.CompletableConcatSubscriber(package private) static classCompletableOnSubscribeMerge.CompletableMergeSubscriberclassDeferredScalarSubscriber<T,R>Base class for Subscribers that consume the entire upstream and signal zero or one element (or an error) in a backpressure honoring fashion.(package private) static classOnSubscribeAmb.AmbSubscriber<T>(package private) static classOnSubscribeCollect.CollectSubscriber<T,R>(package private) static classOnSubscribeCombineLatest.CombinerSubscriber<T,R>(package private) static classOnSubscribeConcatMap.ConcatMapInnerSubscriber<T,R>(package private) static classOnSubscribeConcatMap.ConcatMapSubscriber<T,R>(package private) static classOnSubscribeDetach.DetachSubscriber<T>The parent subscriber that forwards events and cleans up on a terminal state.(package private) static classOnSubscribeFilter.FilterSubscriber<T>(package private) static classOnSubscribeFlattenIterable.FlattenIterableSubscriber<T,R>(package private) static classOnSubscribeFromAsync.BaseAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.BufferAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.DropAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.ErrorAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.LatestAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.NoneAsyncEmitter<T>(package private) static classOnSubscribeFromAsync.NoOverflowBaseAsyncEmitter<T>(package private) classOnSubscribeGroupJoin.ResultManager.LeftDurationObserverObserve left duration and apply termination.(package private) classOnSubscribeGroupJoin.ResultManager.LeftObserverObserve the left source.(package private) classOnSubscribeGroupJoin.ResultManager.RightDurationObserverObserve right duration and apply termination.(package private) classOnSubscribeGroupJoin.ResultManager.RightObserverObserve the right source.(package private) classOnSubscribeGroupJoin.WindowObservableFunc.WindowSubscriberObserve activities on the window.(package private) classOnSubscribeJoin.ResultSink.LeftSubscriberObserves the left values.(package private) classOnSubscribeJoin.ResultSink.LeftSubscriber.LeftDurationSubscriberObserves the left duration.(package private) classOnSubscribeJoin.ResultSink.RightSubscriberObserves the right values.(package private) classOnSubscribeJoin.ResultSink.RightSubscriber.RightDurationSubscriberObserve the right duration.(package private) static classOnSubscribeMap.MapSubscriber<T,R>(package private) static classOnSubscribeOnAssembly.OnAssemblySubscriber<T>classOnSubscribePublishMulticast<T>Multicasts notifications coming through its input Subscriber view to its client Subscribers via lockstep backpressure mode.(package private) static classOnSubscribePublishMulticast.ParentSubscriber<T>The subscriber that must be used for subscribing to the upstream source.(package private) static classOnSubscribeReduce.ReduceSubscriber<T>(package private) static classOnSubscribeReduceSeed.ReduceSeedSubscriber<T,R>(package private) static classOnSubscribeTakeLastOne.TakeLastOneSubscriber<T>(package private) classOperatorBufferWithSingleObservable.BufferingSubscriber(package private) static classOperatorBufferWithSize.BufferExact<T>(package private) static classOperatorBufferWithSize.BufferOverlap<T>(package private) static classOperatorBufferWithSize.BufferSkip<T>(package private) classOperatorBufferWithStartEndObservable.BufferingSubscriber(package private) classOperatorBufferWithTime.ExactSubscriberSubscriber when exact timed chunking is required.(package private) classOperatorBufferWithTime.InexactSubscriberSubscriber when the buffer chunking time and length differ.(package private) static classOperatorCast.CastSubscriber<T,R>(package private) static classOperatorDoOnRequest.ParentSubscriber<T>(package private) static classOperatorEagerConcatMap.EagerInnerSubscriber<T>(package private) static classOperatorEagerConcatMap.EagerOuterSubscriber<T,R>static classOperatorGroupBy.GroupBySubscriber<T,K,V>(package private) static classOperatorMapNotification.MapNotificationSubscriber<T,R>(package private) static classOperatorMapPair.MapPairSubscriber<T,U,R>(package private) static classOperatorMaterialize.ParentSubscriber<T>(package private) static classOperatorMerge.InnerSubscriber<T>(package private) static classOperatorMerge.MergeSubscriber<T>The subscriber that observes Observables.(package private) static classOperatorObserveOn.ObserveOnSubscriber<T>Observe through individual queue per observer.(package private) static classOperatorOnBackpressureBuffer.BufferSubscriber<T>(package private) static classOperatorOnBackpressureLatest.LatestEmitter<T>A terminable producer which emits the latest items on request.(package private) static classOperatorOnBackpressureLatest.LatestSubscriber<T>(package private) static classOperatorPublish.PublishSubscriber<T>(package private) static classOperatorReplay.ReplaySubscriber<T>(package private) static classOperatorRetryWithPredicate.SourceSubscriber<T>(package private) static classOperatorSampleWithTime.SamplerSubscriber<T>The source subscriber and sampler.(package private) static classOperatorScan.InitialProducer<R>(package private) static classOperatorSingle.ParentSubscriber<T>(package private) static classOperatorSwitch.InnerSubscriber<T>(package private) static classOperatorSwitch.SwitchSubscriber<T>(package private) static classOperatorSwitchIfEmpty.AlternateSubscriber<T>(package private) static classOperatorSwitchIfEmpty.ParentSubscriber<T>(package private) static classOperatorTakeLast.TakeLastSubscriber<T>(package private) static classOperatorTakeLastTimed.TakeLastTimedSubscriber<T>(package private) static classOperatorTakeTimed.TakeSubscriber<T>Subscribed to source and scheduled on a worker.(package private) classOperatorTakeUntilPredicate.ParentSubscriberSubscriber returned to the upstream.(package private) static classOperatorTimeoutBase.TimeoutSubscriber<T>(package private) static classOperatorWindowWithObservable.BoundarySubscriber<T,U>Observes the boundary.(package private) static classOperatorWindowWithObservable.SourceSubscriber<T>Observes the source.(package private) static classOperatorWindowWithObservableFactory.BoundarySubscriber<T,U>Observes the boundary.(package private) static classOperatorWindowWithObservableFactory.SourceSubscriber<T,U>Observes the source.(package private) static classOperatorWindowWithSize.WindowExact<T>(package private) static classOperatorWindowWithSize.WindowOverlap<T>(package private) static classOperatorWindowWithSize.WindowSkip<T>(package private) classOperatorWindowWithStartEndObservable.SourceSubscriber(package private) classOperatorWindowWithTime.ExactSubscriberSubscriber with exact, non-overlapping windows.(package private) classOperatorWindowWithTime.InexactSubscriberSubscriber with inexact, potentially overlapping or discontinuous windows.(package private) static classOperatorWithLatestFromMany.WithLatestMainSubscriber<T,R>(package private) static classOperatorWithLatestFromMany.WithLatestOtherSubscriber(package private) classOperatorZip.Zip.InnerSubscriber(package private) classOperatorZip.ZipSubscriberFields in rx.internal.operators declared as Observer Modifier and Type Field Description (package private) Observer<? super R>OperatorZip.Zip. child(package private) Observer<T>OperatorWindowWithObservable.SourceSubscriber. consumerAccessed from the serialized part.(package private) Observer<T>OperatorWindowWithObservableFactory.SourceSubscriber. consumerAccessed from the serialized part.(package private) Observer<T>OperatorWindowWithStartEndObservable.SerializedSubject. consumer(package private) Observer<T>OperatorWindowWithTime.CountedSerializedSubject. consumer(package private) Observer<T>OperatorWindowWithTime.State. consumer(package private) Observer<? super T>OperatorDoOnEach. doOnEachObserver(package private) static ObserverBufferUntilSubscriber. EMPTY_OBSERVERFields in rx.internal.operators with type parameters of type Observer Modifier and Type Field Description (package private) java.util.Map<java.lang.Integer,Observer<T2>>OnSubscribeGroupJoin.ResultManager. leftMapGuarded by guard.Methods in rx.internal.operators with parameters of type Observer Modifier and Type Method Description booleanNotificationLite. accept(Observer<? super T> o, java.lang.Object n)Unwraps the lite notification and calls the appropriate method on theObserver.(package private) booleanBufferUntilSubscriber.State. casObserverRef(Observer<? super T> expected, Observer<? super T> next)OperatorWindowWithTime.State<T>OperatorWindowWithTime.State. create(Observer<T> consumer, Observable<T> producer)Method parameters in rx.internal.operators with type arguments of type Observer Modifier and Type Method Description (package private) voidOnSubscribeGroupJoin.ResultManager. complete(java.util.List<Observer<T2>> list)Constructors in rx.internal.operators with parameters of type Observer Constructor Description CountedSerializedSubject(Observer<T> consumer, Observable<T> producer)OperatorDoOnEach(Observer<? super T> doOnEachObserver)SerializedSubject(Observer<T> consumer, Observable<T> producer)State(Observer<T> consumer, Observable<T> producer, int count) -
Uses of Observer in rx.internal.producers
Classes in rx.internal.producers that implement Observer Modifier and Type Class Description classProducerObserverArbiter<T>Producer that serializes any event emission with requesting and producer changes.classQueuedProducer<T>Producer that holds an unbounded (or custom) queue, handles terminal events, enqueues values and relays them to a child subscriber on request. -
Uses of Observer in rx.internal.schedulers
Fields in rx.internal.schedulers declared as Observer Modifier and Type Field Description private Observer<Observable<Completable>>SchedulerWhen. workerObserver -
Uses of Observer in rx.internal.util
Classes in rx.internal.util that implement Observer Modifier and Type Class Description classActionNotificationObserver<T>An Observer that forwards the onXXX method calls to a notification callback by transforming each signal type into Notifications.classActionSubscriber<T>A Subscriber that forwards the onXXX method calls to callbacks.classObserverSubscriber<T>Wraps an Observer and forwards the onXXX method calls to it.Fields in rx.internal.util declared as Observer Modifier and Type Field Description (package private) Observer<? super T>ObserverSubscriber. observerMethods in rx.internal.util with parameters of type Observer Modifier and Type Method Description booleanRxRingBuffer. accept(java.lang.Object o, Observer child)Constructors in rx.internal.util with parameters of type Observer Constructor Description ObserverSubscriber(Observer<? super T> observer) -
Uses of Observer in rx.observables
Classes in rx.observables that implement Observer Modifier and Type Class Description (package private) static classAsyncOnSubscribe.AsyncOuterManager<S,T>(package private) static classAsyncOnSubscribe.UnicastSubject<T>(package private) static classSyncOnSubscribe.SubscriptionProducer<S,T>Contains the producer loop that reacts to downstream requests of work.Fields in rx.observables with type parameters of type Observer Modifier and Type Field Description private Func3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>,? extends S>AsyncOnSubscribe.AsyncOnSubscribeImpl. nextprivate Func2<? super S,? super Observer<? super T>,? extends S>SyncOnSubscribe.SyncOnSubscribeImpl. nextMethods in rx.observables with parameters of type Observer Modifier and Type Method Description protected SAsyncOnSubscribe.AsyncOnSubscribeImpl. next(S state, long requested, Observer<Observable<? extends T>> observer)protected abstract SAsyncOnSubscribe. next(S state, long requested, Observer<Observable<? extends T>> observer)Called to produce data to the downstream subscribers.protected abstract SSyncOnSubscribe. next(S state, Observer<? super T> observer)Called to produce data to the downstream subscribers.protected SSyncOnSubscribe.SyncOnSubscribeImpl. next(S state, Observer<? super T> observer)voidBlockingObservable. subscribe(Observer<? super T> observer)Subscribes to the source and calls back the Observer methods on the current thread.Method parameters in rx.observables with type arguments of type Observer Modifier and Type Method Description static <S,T>
AsyncOnSubscribe<S,T>AsyncOnSubscribe. createSingleState(Func0<? extends S> generator, Action3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>> next)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
AsyncOnSubscribe<S,T>AsyncOnSubscribe. createSingleState(Func0<? extends S> generator, Action3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>> next, Action1<? super S> onUnsubscribe)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
SyncOnSubscribe<S,T>SyncOnSubscribe. createSingleState(Func0<? extends S> generator, Action2<? super S,? super Observer<? super T>> next)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
SyncOnSubscribe<S,T>SyncOnSubscribe. createSingleState(Func0<? extends S> generator, Action2<? super S,? super Observer<? super T>> next, Action1<? super S> onUnsubscribe)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
AsyncOnSubscribe<S,T>AsyncOnSubscribe. createStateful(Func0<? extends S> generator, Func3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>,? extends S> next)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
AsyncOnSubscribe<S,T>AsyncOnSubscribe. createStateful(Func0<? extends S> generator, Func3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>,? extends S> next, Action1<? super S> onUnsubscribe)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
SyncOnSubscribe<S,T>SyncOnSubscribe. createStateful(Func0<? extends S> generator, Func2<? super S,? super Observer<? super T>,? extends S> next)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <S,T>
SyncOnSubscribe<S,T>SyncOnSubscribe. createStateful(Func0<? extends S> generator, Func2<? super S,? super Observer<? super T>,? extends S> next, Action1<? super S> onUnsubscribe)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <T> AsyncOnSubscribe<java.lang.Void,T>AsyncOnSubscribe. createStateless(Action2<java.lang.Long,? super Observer<Observable<? extends T>>> next)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <T> AsyncOnSubscribe<java.lang.Void,T>AsyncOnSubscribe. createStateless(Action2<java.lang.Long,? super Observer<Observable<? extends T>>> next, Action0 onUnsubscribe)Generates a synchronousAsyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <T> SyncOnSubscribe<java.lang.Void,T>SyncOnSubscribe. createStateless(Action1<? super Observer<? super T>> next)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.static <T> SyncOnSubscribe<java.lang.Void,T>SyncOnSubscribe. createStateless(Action1<? super Observer<? super T>> next, Action0 onUnsubscribe)Generates a synchronousSyncOnSubscribethat calls the providednextfunction to generate data to downstream subscribers.Constructor parameters in rx.observables with type arguments of type Observer Constructor Description AsyncOnSubscribeImpl(Func0<? extends S> generator, Func3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>,? extends S> next)AsyncOnSubscribeImpl(Func0<? extends S> generator, Func3<? super S,java.lang.Long,? super Observer<Observable<? extends T>>,? extends S> next, Action1<? super S> onUnsubscribe)AsyncOnSubscribeImpl(Func3<S,java.lang.Long,Observer<Observable<? extends T>>,S> nextFunc)AsyncOnSubscribeImpl(Func3<S,java.lang.Long,Observer<Observable<? extends T>>,S> next, Action1<? super S> onUnsubscribe)SyncOnSubscribeImpl(Func0<? extends S> generator, Func2<? super S,? super Observer<? super T>,? extends S> next)SyncOnSubscribeImpl(Func0<? extends S> generator, Func2<? super S,? super Observer<? super T>,? extends S> next, Action1<? super S> onUnsubscribe)SyncOnSubscribeImpl(Func2<S,Observer<? super T>,S> nextFunc)SyncOnSubscribeImpl(Func2<S,Observer<? super T>,S> next, Action1<? super S> onUnsubscribe) -
Uses of Observer in rx.observers
Classes in rx.observers that implement Observer Modifier and Type Class Description classSafeSubscriber<T>SafeSubscriberis a wrapper aroundSubscriberthat ensures that theSubscribercomplies with the Observable contract.classSerializedObserver<T>Enforces single-threaded, serialized, ordered execution ofSerializedObserver.onNext(T),SerializedObserver.onCompleted(), andSerializedObserver.onError(java.lang.Throwable).classSerializedSubscriber<T>Enforces single-threaded, serialized, ordered execution ofSerializedSubscriber.onNext(T),SerializedSubscriber.onCompleted(), andSerializedSubscriber.onError(java.lang.Throwable).classTestObserver<T>Deprecated.use theTestSubscriberinsteand.classTestSubscriber<T>ATestSubscriberis a variety ofSubscriberthat you can use for unit testing, to perform assertions, inspect received events, or wrap a mockedSubscriber.Fields in rx.observers declared as Observer Modifier and Type Field Description private Observer<? super T>SerializedObserver. actualprivate Observer<T>TestObserver. delegateDeprecated.private Observer<T>TestSubscriber. delegateprivate static Observer<java.lang.Object>Observers. EMPTYprivate static Observer<java.lang.Object>TestObserver. INERTDeprecated.private static Observer<java.lang.Object>TestSubscriber. INERTThe shared no-op observer.private Observer<T>SerializedSubscriber. sMethods in rx.observers that return Observer Modifier and Type Method Description static <T> Observer<T>Observers. create(Action1<? super T> onNext)Creates anObserverthat receives the emissions of anyObservableit subscribes to viaonNextbut ignoresonCompletednotifications; it will throw anOnErrorNotImplementedExceptionifonErroris invoked.static <T> Observer<T>Observers. create(Action1<? super T> onNext, Action1<java.lang.Throwable> onError)Creates anObserverthat receives the emissions of anyObservableit subscribes to viaonNextand handles anyonErrornotification but ignores anonCompletednotification.static <T> Observer<T>Observers. create(Action1<? super T> onNext, Action1<java.lang.Throwable> onError, Action0 onComplete)Creates anObserverthat receives the emissions of anyObservableit subscribes to viaonNextand handles anyonErrororonCompletednotifications.static <T> Observer<T>Observers. empty()Methods in rx.observers with parameters of type Observer Modifier and Type Method Description static <T> TestSubscriber<T>TestSubscriber. create(Observer<T> delegate)Factory method to construct a TestSubscriber which delegates events to the given Observer and an issues an initial request of Long.MAX_VALUE.static <T> TestSubscriber<T>TestSubscriber. create(Observer<T> delegate, long initialRequest)Factory method to construct a TestSubscriber which delegates events to the given Observer and issues the given initial request amount.static <T> Subscriber<T>Subscribers. from(Observer<? super T> o)Converts anObserverinto aSubscriber.Constructors in rx.observers with parameters of type Observer Constructor Description SerializedObserver(Observer<? super T> s)TestObserver(Observer<T> delegate)Deprecated.TestSubscriber(Observer<T> delegate)Constructs a TestSubscriber which requests Long.MAX_VALUE and delegates events to the given Observer.TestSubscriber(Observer<T> delegate, long initialRequest)Constructs a TestSubscriber with the initial request to be requested from upstream and a delegate Observer to wrap. -
Uses of Observer in rx.subjects
Classes in rx.subjects that implement Observer Modifier and Type Class Description classAsyncSubject<T>Subject that publishes only the last item observed to eachObserveronce the sourceObservablehas completed.classBehaviorSubject<T>Subject that emits the most recent item it has observed and all subsequent observed items to each subscribedObserver.classPublishSubject<T>Subject that, once anObserverhas subscribed, emits all subsequently observed items to the subscriber.classReplaySubject<T>Subject that buffers all items it observes and replays them to anyObserverthat subscribes.(package private) static classReplaySubject.ReplayState<T>Holds onto the array of Subscriber-wrapping ReplayProducers and the buffer that holds values to be replayed; it manages subscription and signal dispatching.classSerializedSubject<T,R>Wraps aSubjectso that it is safe to call its variousonmethods from different threads.classSubject<T,R>Represents an object that is both an Observable and an Observer.protected static classSubjectSubscriptionManager.SubjectObserver<T>Observer wrapping the actual Subscriber and providing various emission facilities.classTestSubject<T>A variety of Subject that is useful for testing purposes.classUnicastSubject<T>A Subject variant which buffers events until a single Subscriber arrives and replays them to it and potentially switches to direct delivery once the Subscriber caught up and requested an unlimited amount.(package private) static classUnicastSubject.State<T>The single-consumption replaying state.Methods in rx.subjects that return Observer Modifier and Type Method Description (package private) Observer<? super T>SubjectSubscriptionManager.SubjectObserver. getActual()
-