T - the element typepublic static class Take.FirstTimed<T> extends java.lang.Object implements Observable<T>
| Modifier and Type | Field and Description |
|---|---|
protected Scheduler |
pool |
protected Observable<? extends T> |
source |
protected long |
time |
protected java.util.concurrent.TimeUnit |
unit |
| Constructor and Description |
|---|
FirstTimed(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.
|
protected final Observable<? extends T> source
protected final long time
protected final java.util.concurrent.TimeUnit unit
protected final Scheduler pool
public FirstTimed(Observable<? extends T> source, long time, java.util.concurrent.TimeUnit unit, Scheduler pool)
source - the source sequencetime - the timeunit - the unitpool - the pool for timed operation@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