T - the element typepublic static class Delay.Registration<T> extends java.lang.Object implements Observable<T>
| Constructor and Description |
|---|
Registration(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 Registration(Observable<? extends T> source, long time, java.util.concurrent.TimeUnit unit, Scheduler pool)
source - the source observable.time - the time to waitunit - the time unitpool - the scheduler pool where to wait.@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