Package rx.internal.operators
Class CompletableOnSubscribeConcat.CompletableConcatSubscriber
- java.lang.Object
-
- rx.Subscriber<Completable>
-
- rx.internal.operators.CompletableOnSubscribeConcat.CompletableConcatSubscriber
-
- All Implemented Interfaces:
Observer<Completable>,Subscription
- Enclosing class:
- CompletableOnSubscribeConcat
static final class CompletableOnSubscribeConcat.CompletableConcatSubscriber extends Subscriber<Completable>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classCompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber
-
Field Summary
Fields Modifier and Type Field Description (package private) Completable.CompletableSubscriberactual(package private) booleandone(package private) CompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriberinner(package private) java.util.concurrent.atomic.AtomicBooleanonce(package private) intprefetch(package private) SpscArrayQueue<Completable>queue(package private) SerialSubscriptionsr(package private) java.util.concurrent.atomic.AtomicIntegerwip
-
Constructor Summary
Constructors Constructor Description CompletableConcatSubscriber(Completable.CompletableSubscriber actual, int prefetch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidinnerComplete()(package private) voidinnerError(java.lang.Throwable e)(package private) voidnext()voidonCompleted()Notifies the Observer that theObservablehas finished sending push-based notifications.voidonError(java.lang.Throwable t)Notifies the Observer that theObservablehas experienced an error condition.voidonNext(Completable t)Provides the Observer with a new item to observe.-
Methods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, setProducer, unsubscribe
-
-
-
-
Field Detail
-
actual
final Completable.CompletableSubscriber actual
-
prefetch
final int prefetch
-
sr
final SerialSubscription sr
-
queue
final SpscArrayQueue<Completable> queue
-
done
volatile boolean done
-
once
final java.util.concurrent.atomic.AtomicBoolean once
-
wip
final java.util.concurrent.atomic.AtomicInteger wip
-
-
Constructor Detail
-
CompletableConcatSubscriber
public CompletableConcatSubscriber(Completable.CompletableSubscriber actual, int prefetch)
-
-
Method Detail
-
onNext
public void onNext(Completable t)
Description copied from interface:ObserverProvides the Observer with a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill not call this method again after it calls eitherObserver.onCompleted()orObserver.onError(java.lang.Throwable).- Parameters:
t- the item emitted by the Observable
-
onError
public void onError(java.lang.Throwable t)
Description copied from interface:ObserverNotifies the Observer that theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onCompleted().- Parameters:
t- the exception encountered by the Observable
-
onCompleted
public void onCompleted()
Description copied from interface:ObserverNotifies the Observer that theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable).
-
innerError
void innerError(java.lang.Throwable e)
-
innerComplete
void innerComplete()
-
next
void next()
-
-