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 AtomicInteger
Fields inherited from class rx.internal.operators.OnSubscribeFromAsync.BaseAsyncEmitter
actual, serial
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
drain()
void
Notifies the Observer that theObservable
has finished sending push-based notifications.void
Notifies the Observer that theObservable
has experienced an error condition.void
Provides the Observer with a new item to observe.(package private) void
(package private) void
Methods inherited from class rx.internal.operators.OnSubscribeFromAsync.BaseAsyncEmitter
isUnsubscribed, request, requested, setCancellation, setSubscription, unsubscribe
Methods 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, weakCompareAndSetVolatile
Methods 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: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()
. -
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)
.- Specified by:
onCompleted
in interfaceObserver<T>
- Overrides:
onCompleted
in classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
onRequested
void onRequested()- Overrides:
onRequested
in classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
onUnsubscribed
void onUnsubscribed()- Overrides:
onUnsubscribed
in classOnSubscribeFromAsync.BaseAsyncEmitter<T>
-
drain
void drain()
-