T - the source and result element typeU - the initial timeout element type, irrelevantV - the per-element timeout type, irrelevantpublic static class Timeout.ByObservables<T,U,V> extends java.lang.Object implements Observable<T>
| Constructor and Description |
|---|
ByObservables(Observable<? extends T> source,
Observable<U> firstTimeout,
Func1<? super T,? extends Observable<V>> timeoutSelector,
Observable<? extends T> other)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public ByObservables(Observable<? extends T> source, Observable<U> firstTimeout, Func1<? super T,? extends Observable<V>> timeoutSelector, Observable<? extends T> other)
source - the source sequencefirstTimeout - the timeout observabletimeoutSelector - the selector for timeouts for each elementother - the other source to switch to@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