T - the element typepublic static class Windowing.WithTimeOrSize<T> extends java.lang.Object implements Observable<Observable<T>>
| Modifier and Type | Field and Description |
|---|---|
protected int |
size |
protected Observable<? extends T> |
source |
protected long |
timespan |
protected java.util.concurrent.TimeUnit |
unit |
| Constructor and Description |
|---|
WithTimeOrSize(Observable<? extends T> source,
int size,
long timespan,
java.util.concurrent.TimeUnit unit,
Scheduler pool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super Observable<T>> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<? extends T> source
protected final int size
protected final long timespan
protected final java.util.concurrent.TimeUnit unit
public WithTimeOrSize(Observable<? extends T> source, int size, long timespan, java.util.concurrent.TimeUnit unit, Scheduler pool)
source - the source sequencesize - the window sizetimespan - the window lengthunit - the time unitpool - the scheduler to run the timed operations@Nonnull public java.io.Closeable register(Observer<? super Observable<T>> observer)
Observableregister in interface Observable<Observable<T>>observer - the observer of Ts or any supertype of it