| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | OperatorOnBackpressureLatest.Holder
Holds a singleton instance initialized on class-loading. |
| pack-priv static class | OperatorOnBackpressureLatest.LatestEmitter<T>
A terminable producer which emits the latest items on request. |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber | |
| public static < the value type T> OperatorOnBackpressureLatest | Returns: the single instanceof OperatorOnBackpressureLatestReturns a singleton instance of the OnBackpressureLatest operator since it is stateless. |
| OperatorOnBackpressureLatest | back to summary |
|---|---|
| public OperatorOnBackpressureLatest() | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| instance | back to summary |
|---|---|
| public static <T> OperatorOnBackpressureLatest Returns a singleton instance of the OnBackpressureLatest operator since it is stateless.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final OperatorOnBackpressureLatest |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final OperatorOnBackpressureLatest<Object> INSTANCE | |
| Holder | back to summary |
|---|---|
| pack-priv Holder() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv volatile boolean | |
| pack-priv boolean | emitting
Guarded by this. |
| pack-priv static final Object | |
| pack-priv boolean | missed
Guarded by this. |
| pack-priv static final long | |
| pack-priv OperatorOnBackpressureLatest. | |
| private static final long | |
| pack-priv Throwable | terminal
Written before done, read after done. |
| pack-priv final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | isUnsubscribed()
Implements rx. Subscription is currently unsubscribed.
|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| pack-priv long | |
| public void | request(long
the maximum number of items you want this Producer to produce, or n)Long.MAX_VALUE if you
want the Producer to produce items at its own paceImplements rx. |
| public void | unsubscribe()
Implements rx. Subscriber that was registered when this Subscription
was received.
|
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> child | |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done | |
| emitting | back to summary |
|---|---|
| pack-priv boolean emitting Guarded by this. | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final Object EMPTY | |
| missed | back to summary |
|---|---|
| pack-priv boolean missed Guarded by this. | |
| NOT_REQUESTED | back to summary |
|---|---|
| pack-priv static final long NOT_REQUESTED | |
| parent | back to summary |
|---|---|
| pack-priv OperatorOnBackpressureLatest. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| terminal | back to summary |
|---|---|
| pack-priv Throwable terminal Written before done, read after done. | |
| value | back to summary |
|---|---|
| pack-priv final AtomicReference<Object> value | |
| LatestEmitter | back to summary |
|---|---|
| public LatestEmitter(Subscriber<? super T> child) | |
| emit | back to summary |
|---|---|
| pack-priv void emit() | |
| isUnsubscribed | back to summary |
|---|---|
| public boolean isUnsubscribed() Implements rx. Doc from rx. Indicates whether this
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| produced | back to summary |
|---|---|
| pack-priv long produced(long n) | |
| request | back to summary |
|---|---|
| public void request(long n) Implements rx. Doc from rx. Request a certain maximum number of items from this Producer. This is a way of requesting backpressure.
To disable backpressure, pass
Requests are additive but if a sequence of requests totals more than request(100); request(Long.MAX_VALUE-1);
| |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Implements rx. Doc from rx. Stops the receipt of notifications on the
This allows deregistering an
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OperatorOnBackpressureLatest. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| public void | onStart()
Overrides rx. |
| pack-priv void |
| producer | back to summary |
|---|---|
| private final OperatorOnBackpressureLatest. Hides rx. | |
| LatestSubscriber | back to summary |
|---|---|
| pack-priv LatestSubscriber(OperatorOnBackpressureLatest. | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| onStart | back to summary |
|---|---|
| public void onStart() Overrides rx. Doc from rx. This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.
| |
| requestMore | back to summary |
|---|---|
| pack-priv void requestMore(long n) | |