Note that this conforms the Rx.NET behavior, but does not match former RxJava behavior, which operated as a regular buffer and mapped its lists to Observables.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | OperatorWindowWithTime.CountedSerializedSubject<
the subject's in-out type T>Record to store the subject and the emission count. |
| pack-priv class | OperatorWindowWithTime.ExactSubscriber
Subscriber with exact, non-overlapping windows. |
| pack-priv class | OperatorWindowWithTime.InexactSubscriber
Subscriber with inexact, potentially overlapping or discontinuous windows. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Object | NEXT_SUBJECT
Indicate the current subject should complete and a new subject be emitted. |
| pack-priv final Scheduler | |
| pack-priv final int | |
| pack-priv final long | timeshift
Period of creating new windows. |
| pack-priv final long | timespan
Length of each window. |
| pack-priv final TimeUnit |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber |
| NEXT_SUBJECT | back to summary |
|---|---|
| pack-priv static final Object NEXT_SUBJECT Indicate the current subject should complete and a new subject be emitted. | |
| scheduler | back to summary |
|---|---|
| pack-priv final Scheduler scheduler | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| timeshift | back to summary |
|---|---|
| pack-priv final long timeshift Period of creating new windows. | |
| timespan | back to summary |
|---|---|
| pack-priv final long timespan Length of each window. | |
| unit | back to summary |
|---|---|
| pack-priv final TimeUnit unit | |
| OperatorWindowWithTime | back to summary |
|---|---|
| public OperatorWindowWithTime(long timespan, long timeshift, TimeUnit unit, int size, Scheduler scheduler) | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Observer | |
| pack-priv int | |
| pack-priv final Observable |
| Access | Constructor and Description |
|---|---|
| public |
| consumer | back to summary |
|---|---|
| pack-priv final Observer<T> consumer | |
| count | back to summary |
|---|---|
| pack-priv int count | |
| producer | back to summary |
|---|---|
| pack-priv final Observable<T> producer | |
| CountedSerializedSubject | back to summary |
|---|---|
| public CountedSerializedSubject(Observer<T> consumer, Observable<T> producer) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv boolean | emitting
Guarded by guard. |
| pack-priv final Object | |
| pack-priv List | queue
Guarded by guard. |
| pack-priv volatile OperatorWindowWithTime. | |
| pack-priv final Scheduler. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv 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. |
| pack-priv boolean | |
| pack-priv void |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super Observable<T>> child | |
| emitting | back to summary |
|---|---|
| pack-priv boolean emitting Guarded by guard. | |
| guard | back to summary |
|---|---|
| pack-priv final Object guard | |
| queue | back to summary |
|---|---|
| pack-priv List<Object> queue Guarded by guard. | |
| state | back to summary |
|---|---|
| pack-priv volatile OperatorWindowWithTime. | |
| worker | back to summary |
|---|---|
| pack-priv final Scheduler. | |
| ExactSubscriber | back to summary |
|---|---|
| public ExactSubscriber(Subscriber<? super Observable<T>> child, Scheduler. | |
| complete | back to summary |
|---|---|
| pack-priv void complete() | |
| drain | back to summary |
|---|---|
| pack-priv boolean drain(List<Object> queue) | |
| emitValue | back to summary |
|---|---|
| pack-priv boolean emitValue(T t) | |
| error | back to summary |
|---|---|
| pack-priv void error(Throwable e) | |
| nextWindow | back to summary |
|---|---|
| pack-priv void nextWindow() | |
| 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.
| |
| replaceSubject | back to summary |
|---|---|
| pack-priv boolean replaceSubject() | |
| scheduleExact | back to summary |
|---|---|
| pack-priv void scheduleExact() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv final List | chunks
Guarded by this. |
| pack-priv boolean | done
Guarded by this. |
| pack-priv final Object | |
| pack-priv final Scheduler. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv OperatorWindowWithTime. | |
| 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 | |
| pack-priv void | |
| pack-priv void |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super Observable<T>> child | |
| chunks | back to summary |
|---|---|
| pack-priv final List<OperatorWindowWithTime. Guarded by this. | |
| done | back to summary |
|---|---|
| pack-priv boolean done Guarded by this. | |
| guard | back to summary |
|---|---|
| pack-priv final Object guard | |
| worker | back to summary |
|---|---|
| pack-priv final Scheduler. | |
| InexactSubscriber | back to summary |
|---|---|
| public InexactSubscriber(Subscriber<? super Observable<T>> child, Scheduler. | |
| createCountedSerializedSubject | back to summary |
|---|---|
| pack-priv OperatorWindowWithTime. | |
| 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.
| |
| scheduleChunk | back to summary |
|---|---|
| pack-priv void scheduleChunk() | |
| startNewChunk | back to summary |
|---|---|
| pack-priv void startNewChunk() | |
| terminateChunk | back to summary |
|---|---|
| pack-priv void terminateChunk(OperatorWindowWithTime. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Observer | |
| pack-priv final int | |
| pack-priv static final OperatorWindowWithTime. | |
| pack-priv final Observable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public OperatorWindowWithTime. | |
| public OperatorWindowWithTime. | |
| public static <T> OperatorWindowWithTime. | |
| public OperatorWindowWithTime. |
| consumer | back to summary |
|---|---|
| pack-priv final Observer<T> consumer | |
| count | back to summary |
|---|---|
| pack-priv final int count | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final OperatorWindowWithTime. | |
| producer | back to summary |
|---|---|
| pack-priv final Observable<T> producer | |
| State | back to summary |
|---|---|
| public State(Observer<T> consumer, Observable<T> producer, int count) | |
| clear | back to summary |
|---|---|
| public OperatorWindowWithTime. | |
| create | back to summary |
|---|---|
| public OperatorWindowWithTime. | |
| empty | back to summary |
|---|---|
public static <T> OperatorWindowWithTime.
| |
| next | back to summary |
|---|---|
| public OperatorWindowWithTime. | |