RxJava
rx.operators
Class OperationTimeout
java.lang.Object
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.
|
Method Summary |
static
|
timeout(Observable<? extends T> source,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
|
static
|
timeout(Observable<? extends T> sequence,
long timeout,
java.util.concurrent.TimeUnit timeUnit,
Observable<? extends T> other)
|
static
|
timeout(Observable<? extends T> sequence,
long timeout,
java.util.concurrent.TimeUnit timeUnit,
Observable<? extends T> other,
Scheduler scheduler)
|
static
|
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 |
OperationTimeout
public OperationTimeout()
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)