RxJava
rx.operators
Class OperatorTimeout<T>
java.lang.Object
rx.operators.OperatorTimeout<T>
- All Implemented Interfaces:
- Func1<Subscriber<? super T>,Subscriber<? super T>>, Function, Observable.Operator<T,T>
public final class OperatorTimeout<T>
- extends java.lang.Object
Applies a timeout policy for each element in the observable sequence, using
the specified scheduler to run timeout timers. If the next element isn't
received within the specified timeout duration starting from its predecessor,
the other observable sequence is used to produce future messages from that
point on.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperatorTimeout
public OperatorTimeout(long timeout,
java.util.concurrent.TimeUnit timeUnit,
Observable<? extends T> other,
Scheduler scheduler)
call
public Subscriber<? super T> call(Subscriber<? super T> subscriber)
- Specified by:
call in interface Func1<Subscriber<? super T>,Subscriber<? super T>>