| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Scheduler | |
| pack-priv final long | |
| pack-priv final TimeUnit |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber |
| scheduler | back to summary |
|---|---|
| pack-priv final Scheduler scheduler | |
| time | back to summary |
|---|---|
| pack-priv final long time | |
| unit | back to summary |
|---|---|
| pack-priv final TimeUnit unit | |
| OperatorSampleWithTime | back to summary |
|---|---|
| public OperatorSampleWithTime(long time, TimeUnit unit, Scheduler scheduler) | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | EMPTY_TOKEN
Indicates that no value is available. |
| private final Subscriber | |
| pack-priv final AtomicReference | value
The shared value between the observer and the timed action. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| 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. |
| EMPTY_TOKEN | back to summary |
|---|---|
| private static final Object EMPTY_TOKEN Indicates that no value is available. | |
| subscriber | back to summary |
|---|---|
| private final Subscriber<? super T> subscriber Hides rx. | |
| value | back to summary |
|---|---|
| pack-priv final AtomicReference<Object> value The shared value between the observer and the timed action. | |
| SamplerSubscriber | back to summary |
|---|---|
| public SamplerSubscriber(Subscriber<? super T> subscriber) | |
| call | back to summary |
|---|---|
| public void call() Implements rx.
| |
| emitIfNonEmpty | back to summary |
|---|---|
| private void emitIfNonEmpty() | |
| 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.
| |