Package rx.internal.operators
Class CompletableOnSubscribeConcatIterable.ConcatInnerSubscriber
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- rx.internal.operators.CompletableOnSubscribeConcatIterable.ConcatInnerSubscriber
-
- All Implemented Interfaces:
java.io.Serializable,Completable.CompletableSubscriber
- Enclosing class:
- CompletableOnSubscribeConcatIterable
static final class CompletableOnSubscribeConcatIterable.ConcatInnerSubscriber extends java.util.concurrent.atomic.AtomicInteger implements Completable.CompletableSubscriber
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Completable.CompletableSubscriberactual(package private) intindex(package private) SerialSubscriptionsdprivate static longserialVersionUID(package private) java.util.Iterator<? extends Completable>sources
-
Constructor Summary
Constructors Constructor Description ConcatInnerSubscriber(Completable.CompletableSubscriber actual, java.util.Iterator<? extends Completable> sources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidnext()voidonCompleted()Called once the deferred computation completes normally.voidonError(java.lang.Throwable e)Called once if the deferred computation 'throws' an exception.voidonSubscribe(Subscription d)Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.-
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
actual
final Completable.CompletableSubscriber actual
-
sources
final java.util.Iterator<? extends Completable> sources
-
index
int index
-
sd
final SerialSubscription sd
-
-
Constructor Detail
-
ConcatInnerSubscriber
public ConcatInnerSubscriber(Completable.CompletableSubscriber actual, java.util.Iterator<? extends Completable> sources)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(Subscription d)
Description copied from interface:Completable.CompletableSubscriberCalled once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.- Specified by:
onSubscribein interfaceCompletable.CompletableSubscriber- Parameters:
d- the Subscription instance to call dispose on for cancellation, not null
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:Completable.CompletableSubscriberCalled once if the deferred computation 'throws' an exception.- Specified by:
onErrorin interfaceCompletable.CompletableSubscriber- Parameters:
e- the exception, not null.
-
onCompleted
public void onCompleted()
Description copied from interface:Completable.CompletableSubscriberCalled once the deferred computation completes normally.- Specified by:
onCompletedin interfaceCompletable.CompletableSubscriber
-
next
void next()
-
-