T - the element typepublic static class Skip.LastTimed<T> extends java.lang.Object implements Observable<T>
Since there is no way to know the total duration of the sequence, the operator queues elements unit they become older than the specified time, causing the elements to be delayed by time.
| Constructor and Description |
|---|
LastTimed(Observable<? extends T> source,
long time,
java.util.concurrent.TimeUnit unit)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public LastTimed(Observable<? extends T> source, long time, java.util.concurrent.TimeUnit unit)
source - the source sequencetime - the time to skip from lastunit - the time unit@Nonnull public java.io.Closeable register(Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it