Package rx.internal.operators
Class OperatorSwitch.SwitchSubscriber<T>
- All Implemented Interfaces:
Observer<Observable<? extends T>>
,Subscription
- Enclosing class:
OperatorSwitch<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Subscriber
<? super T> (package private) final boolean
(package private) boolean
(package private) Throwable
(package private) final AtomicLong
(package private) boolean
(package private) boolean
(package private) boolean
(package private) final NotificationLite
<T> (package private) Producer
(package private) final SpscLinkedArrayQueue
<Object> (package private) long
(package private) final SerialSubscription
(package private) static final Throwable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkTerminated
(boolean localMainDone, boolean localInnerActive, Throwable localError, SpscLinkedArrayQueue<Object> localQueue, Subscriber<? super T> localChild, boolean empty) (package private) void
childRequested
(long n) (package private) void
(package private) void
complete
(long id) (package private) void
drain()
(package private) void
emit
(T value, OperatorSwitch.InnerSubscriber<T> inner) (package private) void
(package private) void
init()
(package private) void
innerProducer
(Producer p, long id) void
Notifies the Observer that theObservable
has finished sending push-based notifications.void
Notifies the Observer that theObservable
has experienced an error condition.void
onNext
(Observable<? extends T> t) Provides the Observer with a new item to observe.(package private) void
(package private) boolean
updateError
(Throwable next) Methods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, setProducer, unsubscribe
-
Field Details
-
Constructor Details
-
SwitchSubscriber
SwitchSubscriber(Subscriber<? super T> child, boolean delayError)
-
-
Method Details
-
init
void init() -
clearProducer
void clearProducer() -
onNext
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
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:
e
- the exception encountered by the Observable
-
updateError
-
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)
. -
emit
-
error
-
complete
void complete(long id) -
pluginError
-
innerProducer
-
childRequested
void childRequested(long n) -
drain
void drain() -
checkTerminated
protected boolean checkTerminated(boolean localMainDone, boolean localInnerActive, Throwable localError, SpscLinkedArrayQueue<Object> localQueue, Subscriber<? super T> localChild, boolean empty)
-