Package rx.internal.operators
Class OnSubscribeConcatMap.ConcatMapSubscriber<T,R>
- java.lang.Object
-
- rx.Subscriber<T>
-
- rx.internal.operators.OnSubscribeConcatMap.ConcatMapSubscriber<T,R>
-
- All Implemented Interfaces:
Observer<T>
,Subscription
- Enclosing class:
- OnSubscribeConcatMap<T,R>
static final class OnSubscribeConcatMap.ConcatMapSubscriber<T,R> extends Subscriber<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
active
(package private) Subscriber<? super R>
actual
(package private) ProducerArbiter
arbiter
(package private) int
delayErrorMode
(package private) boolean
done
(package private) java.util.concurrent.atomic.AtomicReference<java.lang.Throwable>
error
(package private) SerialSubscription
inner
(package private) Func1<? super T,? extends Observable<? extends R>>
mapper
(package private) java.util.Queue<java.lang.Object>
queue
(package private) java.util.concurrent.atomic.AtomicInteger
wip
-
Constructor Summary
Constructors Constructor Description ConcatMapSubscriber(Subscriber<? super R> actual, Func1<? super T,? extends Observable<? extends R>> mapper, int prefetch, int delayErrorMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
drain()
(package private) void
drainError(java.lang.Throwable mapperError)
(package private) void
innerCompleted(long produced)
(package private) void
innerError(java.lang.Throwable innerError, long produced)
(package private) void
innerNext(R value)
void
onCompleted()
Notifies the Observer that theObservable
has finished sending push-based notifications.void
onError(java.lang.Throwable mainError)
Notifies the Observer that theObservable
has experienced an error condition.void
onNext(T t)
Provides the Observer with a new item to observe.(package private) void
pluginError(java.lang.Throwable e)
(package private) void
requestMore(long n)
-
Methods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, setProducer, unsubscribe
-
-
-
-
Field Detail
-
actual
final Subscriber<? super R> actual
-
mapper
final Func1<? super T,? extends Observable<? extends R>> mapper
-
delayErrorMode
final int delayErrorMode
-
arbiter
final ProducerArbiter arbiter
-
queue
final java.util.Queue<java.lang.Object> queue
-
wip
final java.util.concurrent.atomic.AtomicInteger wip
-
error
final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> error
-
inner
final SerialSubscription inner
-
done
volatile boolean done
-
active
volatile boolean active
-
-
Constructor Detail
-
ConcatMapSubscriber
public ConcatMapSubscriber(Subscriber<? super R> actual, Func1<? super T,? extends Observable<? extends R>> mapper, int prefetch, int delayErrorMode)
-
-
Method Detail
-
onNext
public void onNext(T 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 mainError)
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:
mainError
- 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)
.
-
requestMore
void requestMore(long n)
-
innerNext
void innerNext(R value)
-
innerError
void innerError(java.lang.Throwable innerError, long produced)
-
innerCompleted
void innerCompleted(long produced)
-
pluginError
void pluginError(java.lang.Throwable e)
-
drain
void drain()
-
drainError
void drainError(java.lang.Throwable mapperError)
-
-