Uses of Interface
rx.Subscription
-
Packages that use Subscription Package Description rx Base reactive classes: Observable, Single and Completable; base reactive consumers; other common base interfaces.rx.internal.operators Operators that allow composing Observables to transform and manipulate data in an asynchronous, functional and thread-safe manner.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.plugins Callback types and a central plugin handler class to hook into the lifecycle of the base reactive types and schedulers.rx.schedulers Scheduler implementations, value+time record classes and the standard factory class to return standard RxJava schedulers or wrap any Executor-based (thread pool) instances.rx.subjects Classes extending the Observable base reactive class and implementing the Observer interface at the same time (aka hot Observables).rx.subscriptions Default implementations for Subscription-based resource management (Subscription container types) and utility classes to construct Subscriptions from callbacks and other types. -
-
Uses of Subscription in rx
Classes in rx that implement Subscription Modifier and Type Class Description static classScheduler.WorkerSequential Scheduler for executing actions on a single thread or event loop.classSingleSubscriber<T>Provides a mechanism for receiving push-based notifications.classSubscriber<T>Provides a mechanism for receiving push-based notifications from Observables, and permits manual unsubscribing from these Observables.Methods in rx with type parameters of type Subscription Modifier and Type Method Description <S extends Scheduler & Subscription>
SScheduler. when(Func1<Observable<Observable<Completable>>,Completable> combine)Allows the use of operators for controlling the timing around when actions scheduled on workers are actually done.Methods in rx that return Subscription Modifier and Type Method Description abstract SubscriptionScheduler.Worker. schedule(Action0 action)Schedules an Action for execution.abstract SubscriptionScheduler.Worker. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)Schedules an Action for execution at some point in the future.SubscriptionScheduler.Worker. schedulePeriodically(Action0 action, long initialDelay, long period, java.util.concurrent.TimeUnit unit)Schedules a cancelable action to be executed periodically.SubscriptionCompletable. subscribe()Subscribes to this Completable and returns a Subscription which can be used to cancel the subscription.SubscriptionCompletable. subscribe(Action0 onComplete)Subscribes to this Completable and calls the given Action0 when this Completable completes normally.SubscriptionCompletable. subscribe(Action0 onComplete, Action1<? super java.lang.Throwable> onError)Subscribes to this Completable and calls back either the onError or onComplete functions.SubscriptionObservable. subscribe()Subscribes to an Observable and ignoresonNextandonCompletedemissions.SubscriptionObservable. subscribe(Action1<? super T> onNext)Subscribes to an Observable and provides a callback to handle the items it emits.SubscriptionObservable. subscribe(Action1<? super T> onNext, Action1<java.lang.Throwable> onError)Subscribes to an Observable and provides callbacks to handle the items it emits and any error notification it issues.SubscriptionObservable. subscribe(Action1<? super T> onNext, Action1<java.lang.Throwable> onError, Action0 onCompleted)Subscribes to an Observable and provides callbacks to handle the items it emits and any error or completion notification it issues.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.SubscriptionObservable. subscribe(Subscriber<? super T> subscriber)Subscribes to an Observable and provides a Subscriber that implements functions to handle the items the Observable emits and any error or completion notification it issues.(package private) static <T> SubscriptionObservable. subscribe(Subscriber<? super T> subscriber, Observable<T> observable)SubscriptionSingle. subscribe()Subscribes to a Single but ignore its emission or notification.SubscriptionSingle. subscribe(Action1<? super T> onSuccess)Subscribes to a Single and provides a callback to handle the item it emits.SubscriptionSingle. subscribe(Action1<? super T> onSuccess, Action1<java.lang.Throwable> onError)Subscribes to a Single and provides callbacks to handle the item it emits or any error notification it issues.SubscriptionSingle. subscribe(Observer<? super T> observer)Subscribes an Observer to this single and returns a Subscription that allows unsubscription.SubscriptionSingle. subscribe(SingleSubscriber<? super T> te)Subscribes to a Single and provides aSingleSubscriberthat implements functions to handle the item the Single emits or any error notification it issues.SubscriptionSingle. subscribe(Subscriber<? super T> subscriber)Subscribes to a Single and provides a Subscriber that implements functions to handle the item the Single emits or any error notification it issues.SubscriptionObservable. unsafeSubscribe(Subscriber<? super T> subscriber)Subscribes to an Observable and invokesObservable.OnSubscribefunction without any contract protection, error handling, unsubscribe, or execution hooks.SubscriptionSingle. unsafeSubscribe(Subscriber<? super T> subscriber)Subscribes to a Single and invokes theSingle.OnSubscribefunction without any contract protection, error handling, unsubscribe, or execution hooks.Methods in rx with parameters of type Subscription Modifier and Type Method Description voidSingleSubscriber. add(Subscription s)Adds aSubscriptionto this Subscriber's list of subscriptions if this list is not marked as unsubscribed.voidSubscriber. add(Subscription s)Adds aSubscriptionto this Subscriber's list of subscriptions if this list is not marked as unsubscribed.voidCompletable.CompletableSubscriber. onSubscribe(Subscription d)Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.voidAsyncEmitter. setSubscription(Subscription s)Sets a Subscription on this emitter; any previous Subscription or Cancellation will be unsubscribed/cancelled.Method parameters in rx with type arguments of type Subscription Modifier and Type Method Description protected CompletableCompletable. doOnLifecycle(Action1<? super Subscription> onSubscribe, Action1<? super java.lang.Throwable> onError, Action0 onComplete, Action0 onAfterComplete, Action0 onUnsubscribe)Returns a Completable instance that calls the various callbacks on the specific lifecycle events.CompletableCompletable. doOnSubscribe(Action1<? super Subscription> onSubscribe)Returns a Completable instance that calls the given onSubscribe callback with the disposable that child subscribers receive on subscription. -
Uses of Subscription in rx.internal.operators
Classes in rx.internal.operators that implement Subscription 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>(package private) static classCachedObservable.ReplayProducer<T>Keeps track of the current request amount and the replay position for a child Subscriber.(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 classOnSubscribeCombineLatest.LatestCoordinator<T,R>(package private) static classOnSubscribeConcatMap.ConcatMapInnerSubscriber<T,R>(package private) static classOnSubscribeConcatMap.ConcatMapSubscriber<T,R>(package private) static classOnSubscribeDetach.DetachProducer<T>Callbacks from the child Subscriber.(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.CancellableSubscription(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.ResultManagerManages sub-observers and subscriptions.(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>(package private) static classOnSubscribeOnAssemblySingle.OnAssemblySingleSubscriber<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 classOnSubscribePublishMulticast.PublishProducer<T>A Producer and Subscription that wraps a child Subscriber and manages its backpressure requests along with its unsubscription from the parent class.(package private) static classOnSubscribeReduce.ReduceSubscriber<T>(package private) static classOnSubscribeReduceSeed.ReduceSeedSubscriber<T,R>(package private) static classOnSubscribeTakeLastOne.TakeLastOneSubscriber<T>(package private) static classOnSubscribeUsing.DisposeAction<Resource>(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 classOperatorGroupBy.State<T,K>(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.InnerProducer<T>A Producer and Subscription that manages the request and unsubscription state of a child subscriber in thread-safe manner.(package private) static classOperatorPublish.PublishSubscriber<T>(package private) static classOperatorReplay.InnerProducer<T>A Producer and Subscription that manages the request and unsubscription state of a child subscriber in thread-safe manner.(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 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.ZipSubscriber(package private) static classSingleDoAfterTerminate.SingleDoAfterTerminateSubscriber<T>(package private) static classSingleOnSubscribeMap.MapSubscriber<T,R>Fields in rx.internal.operators declared as Subscription Modifier and Type Field Description (package private) SubscriptionOperatorWindowWithSize.WindowExact. cancel(package private) SubscriptionOperatorWindowWithSize.WindowOverlap. cancel(package private) SubscriptionOperatorWindowWithSize.WindowSkip. cancel(package private) SubscriptionOperatorMulticast. guardedSubscriptionprivate SubscriptionOnSubscribeGroupJoin.WindowObservableFunc.WindowSubscriber. refFields in rx.internal.operators with type parameters of type Subscription Modifier and Type Field Description (package private) Action1<? super Subscription>OnSubscribeAutoConnect. connectionMethods in rx.internal.operators that return Subscription Modifier and Type Method Description private SubscriptionOnSubscribeRefCount. disconnect(CompositeSubscription current)Methods in rx.internal.operators that return types with arguments of type Subscription Modifier and Type Method Description private Action1<Subscription>OnSubscribeRefCount. onSubscribe(Subscriber<? super T> subscriber, java.util.concurrent.atomic.AtomicBoolean writeLocked)Methods in rx.internal.operators with parameters of type Subscription Modifier and Type Method Description protected voidOnSubscribeJoin.ResultSink.LeftSubscriber. expire(int id, Subscription resource)(package private) voidOnSubscribeJoin.ResultSink.RightSubscriber. expire(int id, Subscription resource)voidCompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber. onSubscribe(Subscription d)voidCompletableOnSubscribeConcatArray.ConcatInnerSubscriber. onSubscribe(Subscription d)voidCompletableOnSubscribeConcatIterable.ConcatInnerSubscriber. onSubscribe(Subscription d)voidOnSubscribeOnAssemblyCompletable.OnAssemblyCompletableSubscriber. onSubscribe(Subscription d)voidOnSubscribeFromAsync.BaseAsyncEmitter. setSubscription(Subscription s)Method parameters in rx.internal.operators with type arguments of type Subscription Modifier and Type Method Description voidOperatorMulticast. connect(Action1<? super Subscription> connection)voidOperatorPublish. connect(Action1<? super Subscription> connection)voidOperatorReplay. connect(Action1<? super Subscription> connection)Constructors in rx.internal.operators with parameters of type Subscription Constructor Description WindowSubscriber(Subscriber<? super T> subscriber, Subscription ref)Constructor parameters in rx.internal.operators with type arguments of type Subscription Constructor Description OnSubscribeAutoConnect(ConnectableObservable<? extends T> source, int numberOfSubscribers, Action1<? super Subscription> connection) -
Uses of Subscription in rx.internal.schedulers
Classes in rx.internal.schedulers that implement Subscription Modifier and Type Class Description (package private) static classCachedThreadScheduler.EventLoopWorker(package private) static classCachedThreadScheduler.ThreadWorker(package private) static classEventLoopsScheduler.EventLoopWorker(package private) static classEventLoopsScheduler.PoolWorker(package private) static classExecutorScheduler.ExecutorSchedulerWorkerWorker that schedules tasks on the executor indirectly through a trampoline mechanism.private classImmediateScheduler.InnerImmediateSchedulerclassNewThreadWorkerclassScheduledActionARunnablethat executes anAction0and can be cancelled.(package private) classScheduledAction.FutureCompleterCancels the captured future if the caller of the call method is not the same as the runner of the outer ScheduledAction to prevent unnecessary self-interrupting if the unsubscription happens from the same thread.(package private) static classScheduledAction.RemoverRemove a child subscription from a composite when unsubscribing.(package private) static classScheduledAction.Remover2Remove a child subscription from a composite when unsubscribing.classSchedulerWhenAllows the use of operators for controlling the timing around when actions scheduled on workers are actually done.private static classSchedulerWhen.DelayedActionprivate static classSchedulerWhen.ImmediateActionprivate static classSchedulerWhen.ScheduledAction(package private) static classTrampolineScheduler.InnerCurrentThreadSchedulerFields in rx.internal.schedulers declared as Subscription Modifier and Type Field Description private static SubscriptionSchedulerWhen. SUBSCRIBEDprivate SubscriptionSchedulerWhen. subscriptionprivate static SubscriptionSchedulerWhen. UNSUBSCRIBEDMethods in rx.internal.schedulers that return Subscription Modifier and Type Method Description protected SubscriptionSchedulerWhen.DelayedAction. callActual(Scheduler.Worker actualWorker)protected SubscriptionSchedulerWhen.ImmediateAction. callActual(Scheduler.Worker actualWorker)protected abstract SubscriptionSchedulerWhen.ScheduledAction. callActual(Scheduler.Worker actualWorker)private SubscriptionTrampolineScheduler.InnerCurrentThreadScheduler. enqueue(Action0 action, long execTime)SubscriptionCachedThreadScheduler.EventLoopWorker. schedule(Action0 action)SubscriptionCachedThreadScheduler.EventLoopWorker. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionEventLoopsScheduler.EventLoopWorker. schedule(Action0 action)SubscriptionEventLoopsScheduler.EventLoopWorker. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionExecutorScheduler.ExecutorSchedulerWorker. schedule(Action0 action)SubscriptionExecutorScheduler.ExecutorSchedulerWorker. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionImmediateScheduler.InnerImmediateScheduler. schedule(Action0 action)SubscriptionImmediateScheduler.InnerImmediateScheduler. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionNewThreadWorker. schedule(Action0 action)SubscriptionNewThreadWorker. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionTrampolineScheduler.InnerCurrentThreadScheduler. schedule(Action0 action)SubscriptionTrampolineScheduler.InnerCurrentThreadScheduler. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit)SubscriptionEventLoopsScheduler. scheduleDirect(Action0 action)Schedules the action directly on one of the event loop workers without the additional infrastructure and checking.Methods in rx.internal.schedulers with parameters of type Subscription Modifier and Type Method Description voidScheduledAction. add(Subscription s)Adds a general Subscription to thisScheduledActionthat will be unsubscribed if the underlyingactioncompletes or the this scheduled action is cancelled. -
Uses of Subscription in rx.internal.util
Classes in rx.internal.util that implement Subscription Modifier and Type Class Description classActionSubscriber<T>A Subscriber that forwards the onXXX method calls to callbacks.classIndexedRingBuffer<E>Add/Remove without object allocation (after initial construction).classObserverSubscriber<T>Wraps an Observer and forwards the onXXX method calls to it.classRxRingBufferThis assumes Spsc or Spmc usage.classSubscriptionListSubscription that represents a group of Subscriptions that are unsubscribed together.Fields in rx.internal.util with type parameters of type Subscription Modifier and Type Field Description (package private) Func1<Action0,Subscription>ScalarSynchronousObservable.ScalarAsyncOnSubscribe. onSchedule(package private) Func1<Action0,Subscription>ScalarSynchronousObservable.ScalarAsyncProducer. onScheduleprivate java.util.List<Subscription>SubscriptionList. subscriptionsMethods in rx.internal.util with parameters of type Subscription Modifier and Type Method Description voidSubscriptionList. add(Subscription s)static voidBlockingUtils. awaitForComplete(java.util.concurrent.CountDownLatch latch, Subscription subscription)Blocks and waits for aSubscriptionto complete.voidSubscriptionList. remove(Subscription s)Method parameters in rx.internal.util with type arguments of type Subscription Modifier and Type Method Description private static voidSubscriptionList. unsubscribeFromAll(java.util.Collection<Subscription> subscriptions)Constructors in rx.internal.util with parameters of type Subscription Constructor Description SubscriptionList(Subscription s)Constructs a SubscriptionList with the given initial child subscription.SubscriptionList(Subscription... subscriptions)Constructs a SubscriptionList with the given initial child subscriptions.Constructor parameters in rx.internal.util with type arguments of type Subscription Constructor Description ScalarAsyncOnSubscribe(T value, Func1<Action0,Subscription> onSchedule)ScalarAsyncProducer(Subscriber<? super T> actual, T value, Func1<Action0,Subscription> onSchedule) -
Uses of Subscription in rx.observables
Classes in rx.observables that implement Subscription Modifier and Type Class Description (package private) static classAsyncOnSubscribe.AsyncOuterManager<S,T>(package private) static classSyncOnSubscribe.SubscriptionProducer<S,T>Contains the producer loop that reacts to downstream requests of work.Methods in rx.observables that return Subscription Modifier and Type Method Description SubscriptionConnectableObservable. connect()Instructs theConnectableObservableto begin emitting the items from its underlyingObservableto itsSubscribers.Method parameters in rx.observables with type arguments of type Subscription Modifier and Type Method Description Observable<T>ConnectableObservable. autoConnect(int numberOfSubscribers, Action1<? super Subscription> connection)Returns an Observable that automatically connects to this ConnectableObservable when the specified number of Subscribers subscribe to it and calls the specified callback with the Subscription associated with the established connection.abstract voidConnectableObservable. connect(Action1<? super Subscription> connection)Instructs theConnectableObservableto begin emitting the items from its underlyingObservableto itsSubscribers. -
Uses of Subscription in rx.observers
Classes in rx.observers that implement Subscription Modifier and Type Class Description classAsyncCompletableSubscriberAn abstract base class for CompletableSubscriber implementations that want to expose an unsubscription capability.(package private) static classAsyncCompletableSubscriber.UnsubscribedclassSafeCompletableSubscriberWraps another CompletableSubscriber and handles exceptions thrown from onError and onCompleted.classSafeSubscriber<T>SafeSubscriberis a wrapper aroundSubscriberthat ensures that theSubscribercomplies with the Observable contract.classSerializedSubscriber<T>Enforces single-threaded, serialized, ordered execution ofSerializedSubscriber.onNext(T),SerializedSubscriber.onCompleted(), andSerializedSubscriber.onError(java.lang.Throwable).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 Subscription Modifier and Type Field Description (package private) SubscriptionSafeCompletableSubscriber. sFields in rx.observers with type parameters of type Subscription Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<Subscription>AsyncCompletableSubscriber. upstreamHolds onto a deferred subscription and allows asynchronous cancellation before the call to onSubscribe() by the upstream.Methods in rx.observers with parameters of type Subscription Modifier and Type Method Description voidAsyncCompletableSubscriber. onSubscribe(Subscription d)voidSafeCompletableSubscriber. onSubscribe(Subscription d) -
Uses of Subscription in rx.plugins
Fields in rx.plugins with type parameters of type Subscription Modifier and Type Field Description (package private) static Func1<Subscription,Subscription>RxJavaHooks. onObservableReturn(package private) static Func1<Subscription,Subscription>RxJavaHooks. onObservableReturn(package private) static Func1<Subscription,Subscription>RxJavaHooks. onSingleReturn(package private) static Func1<Subscription,Subscription>RxJavaHooks. onSingleReturnMethods in rx.plugins that return Subscription Modifier and Type Method Description static SubscriptionRxJavaHooks. onObservableReturn(Subscription subscription)Hook to call before the Observable.subscribe() method is about to return a Subscription.static SubscriptionRxJavaHooks. onSingleReturn(Subscription subscription)Hook to call before the Single.subscribe() method is about to return a Subscription.<T> SubscriptionRxJavaObservableExecutionHook. onSubscribeReturn(Subscription subscription)Deprecated.<T> SubscriptionRxJavaSingleExecutionHook. onSubscribeReturn(Subscription subscription)Deprecated.Methods in rx.plugins that return types with arguments of type Subscription Modifier and Type Method Description static Func1<Subscription,Subscription>RxJavaHooks. getOnObservableReturn()Returns the current Observable onReturn hook function or null if it is set to the default pass-through.static Func1<Subscription,Subscription>RxJavaHooks. getOnObservableReturn()Returns the current Observable onReturn hook function or null if it is set to the default pass-through.static Func1<Subscription,Subscription>RxJavaHooks. getOnSingleReturn()Returns the current Single onReturn hook function or null if it is set to the default pass-through.static Func1<Subscription,Subscription>RxJavaHooks. getOnSingleReturn()Returns the current Single onReturn hook function or null if it is set to the default pass-through.Methods in rx.plugins with parameters of type Subscription Modifier and Type Method Description static SubscriptionRxJavaHooks. onObservableReturn(Subscription subscription)Hook to call before the Observable.subscribe() method is about to return a Subscription.static SubscriptionRxJavaHooks. onSingleReturn(Subscription subscription)Hook to call before the Single.subscribe() method is about to return a Subscription.<T> SubscriptionRxJavaObservableExecutionHook. onSubscribeReturn(Subscription subscription)Deprecated.<T> SubscriptionRxJavaSingleExecutionHook. onSubscribeReturn(Subscription subscription)Deprecated.Method parameters in rx.plugins with type arguments of type Subscription Modifier and Type Method Description static voidRxJavaHooks. setOnObservableReturn(Func1<Subscription,Subscription> onObservableReturn)Sets a hook function that is called when the Observable.subscribe() call is about to return a Subscription unless a lockdown is in effect.static voidRxJavaHooks. setOnObservableReturn(Func1<Subscription,Subscription> onObservableReturn)Sets a hook function that is called when the Observable.subscribe() call is about to return a Subscription unless a lockdown is in effect.static voidRxJavaHooks. setOnSingleReturn(Func1<Subscription,Subscription> onSingleReturn)Sets a hook function that is called when the Single.subscribe() call is about to return a Subscription unless a lockdown is in effect.static voidRxJavaHooks. setOnSingleReturn(Func1<Subscription,Subscription> onSingleReturn)Sets a hook function that is called when the Single.subscribe() call is about to return a Subscription unless a lockdown is in effect. -
Uses of Subscription in rx.schedulers
Classes in rx.schedulers that implement Subscription Modifier and Type Class Description (package private) classTestScheduler.InnerTestSchedulerMethods in rx.schedulers that return Subscription Modifier and Type Method Description SubscriptionTestScheduler.InnerTestScheduler. schedule(Action0 action)SubscriptionTestScheduler.InnerTestScheduler. schedule(Action0 action, long delayTime, java.util.concurrent.TimeUnit unit) -
Uses of Subscription in rx.subjects
Classes in rx.subjects that implement Subscription Modifier and Type Class Description (package private) static classReplaySubject.ReplayProducer<T>A producer and subscription implementation that tracks the current replay position of a particular subscriber.(package private) static classUnicastSubject.State<T>The single-consumption replaying state. -
Uses of Subscription in rx.subscriptions
Classes in rx.subscriptions that implement Subscription Modifier and Type Class Description classBooleanSubscriptionSubscription that can be checked for status such as in a loop inside anObservableto exit the loop if unsubscribed.classCompositeSubscriptionSubscription that represents a group of Subscriptions that are unsubscribed together.classMultipleAssignmentSubscriptionSubscription that can be checked for status such as in a loop inside anObservableto exit the loop if unsubscribed.classRefCountSubscriptionKeeps track of the sub-subscriptions and unsubscribes the underlying subscription once all sub-subscriptions have unsubscribed.(package private) static classRefCountSubscription.InnerSubscriptionThe individual sub-subscriptions.classSerialSubscriptionRepresents a subscription whose underlying subscription can be swapped for another subscription which causes the previous underlying subscription to be unsubscribed.(package private) static classSubscriptions.FutureSubscriptionNaming classes helps with debugging.(package private) static classSubscriptions.UnsubscribedNaming classes helps with debugging.Fields in rx.subscriptions declared as Subscription Modifier and Type Field Description private SubscriptionRefCountSubscription. actual(package private) SubscriptionMultipleAssignmentSubscription.State. subscription(package private) SubscriptionSerialSubscription.State. subscriptionFields in rx.subscriptions with type parameters of type Subscription Modifier and Type Field Description private java.util.Set<Subscription>CompositeSubscription. subscriptionsMethods in rx.subscriptions that return Subscription Modifier and Type Method Description static SubscriptionSubscriptions. create(Action0 unsubscribe)Creates and returns aSubscriptionthat invokes the givenAction0when unsubscribed.static SubscriptionSubscriptions. empty()static SubscriptionSubscriptions. from(java.util.concurrent.Future<?> f)Converts aFutureinto aSubscriptionand cancels it when unsubscribed.SubscriptionMultipleAssignmentSubscription. get()Gets the underlying subscription.SubscriptionRefCountSubscription. get()Returns a new sub-subscriptionSubscriptionSerialSubscription. get()Retrieves the currentSubscriptionthat is being represented by thisSerialSubscription.static SubscriptionSubscriptions. unsubscribed()Returns aSubscriptionto whichunsubscribedoes nothing, as it is already unsubscribed.Methods in rx.subscriptions with parameters of type Subscription Modifier and Type Method Description voidCompositeSubscription. add(Subscription s)Adds a newSubscriptionto thisCompositeSubscriptionif theCompositeSubscriptionis not yet unsubscribed.voidCompositeSubscription. addAll(Subscription... subscriptions)Adds collection ofSubscriptionto thisCompositeSubscriptionif theCompositeSubscriptionis not yet unsubscribed.static CompositeSubscriptionSubscriptions. from(Subscription... subscriptions)Converts a set ofSubscriptions into aCompositeSubscriptionthat groups the multiple Subscriptions together and unsubscribes from all of them together.voidCompositeSubscription. remove(Subscription s)voidMultipleAssignmentSubscription. set(Subscription s)Sets the underlying subscription.(package private) MultipleAssignmentSubscription.StateMultipleAssignmentSubscription.State. set(Subscription s)voidSerialSubscription. set(Subscription s)Swaps out the oldSubscriptionfor the specifiedSubscription.(package private) SerialSubscription.StateSerialSubscription.State. set(Subscription s)Method parameters in rx.subscriptions with type arguments of type Subscription Modifier and Type Method Description private static voidCompositeSubscription. unsubscribeFromAll(java.util.Collection<Subscription> subscriptions)Constructors in rx.subscriptions with parameters of type Subscription Constructor Description CompositeSubscription(Subscription... subscriptions)RefCountSubscription(Subscription s)Creates aRefCountSubscriptionby wrapping the given non-nullSubscription.State(boolean u, Subscription s)State(boolean u, Subscription s)
-