T - the element typepublic static class Take.LastScheduled<T> extends java.lang.Object implements Observable<T>
count
elements from the source observable and emits them from
the specified scheduler pool.| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected Scheduler |
pool |
protected Observable<? extends T> |
source |
| Constructor and Description |
|---|
LastScheduled(Observable<? extends T> source,
int count,
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 int count
protected final Scheduler pool
public LastScheduled(Observable<? extends T> source, int count, Scheduler pool)
source - the source sequencecount - the retainment countpool - the scheduled 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