RxJava



rx.operators
Class OperationTimeout

java.lang.Object
  extended by rx.operators.OperationTimeout

public final class OperationTimeout
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.


Constructor Summary
OperationTimeout()
           
 
Method Summary
static
<T> Observable.OnSubscribeFunc<T>
timeout(Observable<? extends T> source, long timeout, java.util.concurrent.TimeUnit timeUnit)
           
static
<T> Observable.OnSubscribeFunc<T>
timeout(Observable<? extends T> sequence, long timeout, java.util.concurrent.TimeUnit timeUnit, Observable<? extends T> other)
           
static
<T> Observable.OnSubscribeFunc<T>
timeout(Observable<? extends T> sequence, long timeout, java.util.concurrent.TimeUnit timeUnit, Observable<? extends T> other, Scheduler scheduler)
           
static
<T> Observable.OnSubscribeFunc<T>
timeout(Observable<? extends T> source, long timeout, java.util.concurrent.TimeUnit timeUnit, Scheduler scheduler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationTimeout

public OperationTimeout()
Method Detail

timeout

public static <T> Observable.OnSubscribeFunc<T> timeout(Observable<? extends T> source,
                                                        long timeout,
                                                        java.util.concurrent.TimeUnit timeUnit)

timeout

public static <T> Observable.OnSubscribeFunc<T> timeout(Observable<? extends T> sequence,
                                                        long timeout,
                                                        java.util.concurrent.TimeUnit timeUnit,
                                                        Observable<? extends T> other)

timeout

public static <T> Observable.OnSubscribeFunc<T> timeout(Observable<? extends T> source,
                                                        long timeout,
                                                        java.util.concurrent.TimeUnit timeUnit,
                                                        Scheduler scheduler)

timeout

public static <T> Observable.OnSubscribeFunc<T> timeout(Observable<? extends T> sequence,
                                                        long timeout,
                                                        java.util.concurrent.TimeUnit timeUnit,
                                                        Observable<? extends T> other,
                                                        Scheduler scheduler)