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) class
CompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber
-
Field Summary
Fields Modifier and Type Field Description (package private) Completable.CompletableSubscriber
actual
(package private) boolean
done
(package private) CompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber
inner
(package private) java.util.concurrent.atomic.AtomicBoolean
once
(package private) int
prefetch
(package private) SpscArrayQueue<Completable>
queue
(package private) SerialSubscription
sr
(package private) java.util.concurrent.atomic.AtomicInteger
wip
-
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) void
innerComplete()
(package private) void
innerError(java.lang.Throwable e)
(package private) void
next()
void
onCompleted()
Notifies the Observer that theObservable
has finished sending push-based notifications.void
onError(java.lang.Throwable t)
Notifies the Observer that theObservable
has experienced an error condition.void
onNext(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:Observer
Provides the Observer with a new item to observe.The
Observable
may call this method 0 or more times.The
Observable
will 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:Observer
Notifies the Observer that theObservable
has experienced an error condition.If the
Observable
calls 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:Observer
Notifies the Observer that theObservable
has finished sending push-based notifications.The
Observable
will not call this method if it callsObserver.onError(java.lang.Throwable)
.
-
innerError
void innerError(java.lang.Throwable e)
-
innerComplete
void innerComplete()
-
next
void next()
-
-