RxJava



rx.operators
Class OperatorTimeoutWithSelector<T,U,V>

java.lang.Object
  extended by rx.operators.OperatorTimeoutWithSelector<T,U,V>
All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>, Function, Observable.Operator<T,T>

public class OperatorTimeoutWithSelector<T,U,V>
extends java.lang.Object

Returns an Observable that mirrors the source Observable. If either the first item emitted by the source Observable or any subsequent item don't arrive within time windows defined by provided Observables, switch to the other Observable if provided, or emit a TimeoutException .


Constructor Summary
OperatorTimeoutWithSelector(Func0<? extends Observable<U>> firstTimeoutSelector, Func1<? super T,? extends Observable<V>> timeoutSelector, Observable<? extends T> other)
           
 
Method Summary
 Subscriber<? super T> call(Subscriber<? super T> subscriber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorTimeoutWithSelector

public OperatorTimeoutWithSelector(Func0<? extends Observable<U>> firstTimeoutSelector,
                                   Func1<? super T,? extends Observable<V>> timeoutSelector,
                                   Observable<? extends T> other)
Method Detail

call

public Subscriber<? super T> call(Subscriber<? super T> subscriber)
Specified by:
call in interface Func1<Subscriber<? super T>,Subscriber<? super T>>