Top Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorEagerConcatMap<T, R>

extends Object
implements Observable.Operator<R, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Imports
java.util.*, java.util.concurrent.atomic.*, rx.*, .Observable, .Observable.Operator, rx.exceptions.Exceptions, rx.functions.*, rx.internal.util.atomic.SpscAtomicArrayQueue, rx.internal.util.unsafe.*, rx.subscriptions.Subscriptions

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final Func1<? super T, ? extends Observable<? extends R>>
private final int

Constructor Summary

AccessConstructor and Description
public
OperatorEagerConcatMap(Func1<? super T, ? extends Observable<? extends R>> mapper, int bufferSize, int maxConcurrent)

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(Subscriber<? super R> t)

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferSizeback to summary
pack-priv final int bufferSize
mapperback to summary
pack-priv final Func1<? super T, ? extends Observable<? extends R>> mapper
maxConcurrentback to summary
private final int maxConcurrent

Constructor Detail

OperatorEagerConcatMapback to summary
public OperatorEagerConcatMap(Func1<? super T, ? extends Observable<? extends R>> mapper, int bufferSize, int maxConcurrent)

Method Detail

callback to summary
public Subscriber<? super T> call(Subscriber<? super R> t)

Implements rx.functions.Func1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorEagerConcatMap.EagerInnerSubscriber<T>

extends Subscriber<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv volatile boolean
pack-priv Throwable
pack-priv final OperatorEagerConcatMap.EagerOuterSubscriber<?, T>
pack-priv final Queue<Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(T
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
pack-priv void
requestMore(long n)

Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Field Detail

doneback to summary
pack-priv volatile boolean done
errorback to summary
pack-priv Throwable error
parentback to summary
pack-priv final OperatorEagerConcatMap.EagerOuterSubscriber<?, T> parent
queueback to summary
pack-priv final Queue<Object> queue

Constructor Detail

EagerInnerSubscriberback to summary
public EagerInnerSubscriber(OperatorEagerConcatMap.EagerOuterSubscriber<?, T> parent, int bufferSize)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

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 either onCompleted or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override
requestMoreback to summary
pack-priv void requestMore(long n)
rx.internal.operators back to summary

pack-priv final Class OperatorEagerConcatMap.EagerOuterProducer

extends AtomicLong
implements Producer
Class Inheritance
All Implemented Interfaces
rx.Producer

Field Summary

Modifier and TypeField and Description
pack-priv final OperatorEagerConcatMap.EagerOuterSubscriber<?, ?>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
request(long
the maximum number of items you want this Producer to produce, or Long.MAX_VALUE if you want the Producer to produce items at its own pace
n
)

Implements rx.Producer.request.

Request a certain maximum number of items from this Producer.
Inherited from java.util.concurrent.atomic.AtomicLong:
accumulateAndGetaddAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetdecrementAndGetdoubleValuefloatValuegetgetAcquiregetAndAccumulategetAndAddgetAndDecrementgetAndIncrementgetAndSetgetAndUpdategetOpaquegetPlainincrementAndGetintValuelazySetlongValuesetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

parentback to summary
pack-priv final OperatorEagerConcatMap.EagerOuterSubscriber<?, ?> parent
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.concurrent.atomic.AtomicLong.serialVersionUID.

Constructor Detail

EagerOuterProducerback to summary
public EagerOuterProducer(OperatorEagerConcatMap.EagerOuterSubscriber<?, ?> parent)

Method Detail

requestback to summary
public void request(long n)

Implements rx.Producer.request.

Doc from rx.Producer.request.

Request a certain maximum number of items from this Producer. This is a way of requesting backpressure. To disable backpressure, pass Long.MAX_VALUE to this method.

Requests are additive but if a sequence of requests totals more than Long.MAX_VALUE then Long.MAX_VALUE requests will be actioned and the extras may be ignored. Arriving at Long.MAX_VALUE by addition of requests cannot be assumed to disable backpressure. For example, the code below may result in Long.MAX_VALUE requests being actioned only.

request(100);
request(Long.MAX_VALUE-1);
Parameters
n:long

the maximum number of items you want this Producer to produce, or Long.MAX_VALUE if you want the Producer to produce items at its own pace

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorEagerConcatMap.EagerOuterSubscriber<T, R>

extends Subscriber<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super R>
pack-priv final int
pack-priv volatile boolean
pack-priv volatile boolean
pack-priv Throwable
pack-priv final Func1<? super T, ? extends Observable<? extends R>>
private OperatorEagerConcatMap.EagerOuterProducer
pack-priv final Queue<OperatorEagerConcatMap.EagerInnerSubscriber<R>>
pack-priv final AtomicInteger

Constructor Summary

AccessConstructor and Description
public
EagerOuterSubscriber(Func1<? super T, ? extends Observable<? extends R>> mapper, int bufferSize, int maxConcurrent, Subscriber<? super R> actual)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
init()

public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(T
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Field Detail

actualback to summary
pack-priv final Subscriber<? super R> actual
bufferSizeback to summary
pack-priv final int bufferSize
cancelledback to summary
pack-priv volatile boolean cancelled
doneback to summary
pack-priv volatile boolean done
errorback to summary
pack-priv Throwable error
mapperback to summary
pack-priv final Func1<? super T, ? extends Observable<? extends R>> mapper
sharedProducerback to summary
private OperatorEagerConcatMap.EagerOuterProducer sharedProducer
subscribersback to summary
pack-priv final Queue<OperatorEagerConcatMap.EagerInnerSubscriber<R>> subscribers
wipback to summary
pack-priv final AtomicInteger wip

Constructor Detail

EagerOuterSubscriberback to summary
public EagerOuterSubscriber(Func1<? super T, ? extends Observable<? extends R>> mapper, int bufferSize, int maxConcurrent, Subscriber<? super R> actual)

Method Detail

cleanupback to summary
pack-priv void cleanup()
drainback to summary
pack-priv void drain()
initback to summary
pack-priv void init()
onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

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 either onCompleted or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override