T - the element typepublic static class Sample.ByTime<T> extends java.lang.Object implements Observable<T>
| Constructor and Description |
|---|
ByTime(Observable<? extends T> source,
long time,
java.util.concurrent.TimeUnit unit,
Scheduler pool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public ByTime(Observable<? extends T> source, long time, java.util.concurrent.TimeUnit unit, Scheduler pool)
source - the source sequencetime - the time delayunit - the time unitpool - the scheduler pool@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it