Package rx.internal.operators
Class OnSubscribeFromAsync.BufferAsyncEmitter<T>
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
rx.internal.operators.OnSubscribeFromAsync.BaseAsyncEmitter<T>
rx.internal.operators.OnSubscribeFromAsync.BufferAsyncEmitter<T>
- All Implemented Interfaces:
Serializable,AsyncEmitter<T>,Observer<T>,Producer,Subscription
- Enclosing class:
OnSubscribeFromAsync<T>
static final class OnSubscribeFromAsync.BufferAsyncEmitter<T>
extends OnSubscribeFromAsync.BaseAsyncEmitter<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface rx.AsyncEmitter
AsyncEmitter.BackpressureMode, AsyncEmitter.Cancellable -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) Throwable(package private) final NotificationLite<T> private static final long(package private) final AtomicIntegerFields inherited from class rx.internal.operators.OnSubscribeFromAsync.BaseAsyncEmitter
actual, serial -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddrain()voidNotifies the Observer that theObservablehas finished sending push-based notifications.voidNotifies the Observer that theObservablehas experienced an error condition.voidProvides the Observer with a new item to observe.(package private) void(package private) voidMethods inherited from class rx.internal.operators.OnSubscribeFromAsync.BaseAsyncEmitter
isUnsubscribed, request, requested, setCancellation, setSubscription, unsubscribeMethods inherited from class java.util.concurrent.atomic.AtomicLong
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, weakCompareAndSetVolatileMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
queue
-
error
Throwable error -
done
volatile boolean done -
wip
-
nl
-
-
Constructor Details
-
BufferAsyncEmitter
-
-
Method Details
-
onNext
Description copied from interface:ObserverProvides the Observer with a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill 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:ObserverNotifies the Observer that theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onCompleted(). -
onCompleted
public void onCompleted()Description copied from interface:ObserverNotifies the Observer that theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable).- Specified by:
onCompletedin interfaceObserver<T>- Overrides:
onCompletedin classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
onRequested
void onRequested()- Overrides:
onRequestedin classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
onUnsubscribed
void onUnsubscribed()- Overrides:
onUnsubscribedin classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
drain
void drain()
-