T - the element typepublic static class Take.LastBufferTimed<T> extends java.lang.Object implements Observable<java.util.List<T>>
Exception semantics: exceptions are immediately forwarded.
| Modifier and Type | Field and Description |
|---|---|
protected Scheduler |
drainPool |
protected Observable<? extends T> |
source |
protected long |
time |
protected java.util.concurrent.TimeUnit |
unit |
| Constructor and Description |
|---|
LastBufferTimed(Observable<? extends T> source,
long time,
java.util.concurrent.TimeUnit unit,
Scheduler drainPool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super java.util.List<T>> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<? extends T> source
protected final long time
protected final java.util.concurrent.TimeUnit unit
protected final Scheduler drainPool
public LastBufferTimed(Observable<? extends T> source, long time, java.util.concurrent.TimeUnit unit, Scheduler drainPool)
source - the source sequencetime - the timeunit - the unitdrainPool - the optional pool to drain the accumulated values@Nonnull public java.io.Closeable register(Observer<? super java.util.List<T>> observer)
Observableregister in interface Observable<java.util.List<T>>observer - the observer of Ts or any supertype of it