T - the value typepublic static class Throttle.ByTime<T> extends java.lang.Object implements Observable<T>
It is basically how Content Assistant popup works after the user pauses in its typing.
| Constructor and Description |
|---|
ByTime(Observable<? extends T> source,
long delay,
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(@Nonnull
Observable<? extends T> source,
long delay,
@Nonnull
java.util.concurrent.TimeUnit unit,
@Nonnull
Scheduler pool)
source - the source sequencedelay - the delay timeunit - the time unitpool - the scheduler pool for the timed operatons@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