RxJava



rx.operators
Class OperationSample

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

public final class OperationSample
extends java.lang.Object

Returns an Observable that emits the results of sampling the items emitted by the source Observable at a specified time interval.


Constructor Summary
OperationSample()
           
 
Method Summary
static
<T> Observable.OnSubscribeFunc<T>
sample(Observable<? extends T> source, long period, java.util.concurrent.TimeUnit unit)
          Samples the observable sequence at each interval.
static
<T> Observable.OnSubscribeFunc<T>
sample(Observable<? extends T> source, long period, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
          Samples the observable sequence at each interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSample

public OperationSample()
Method Detail

sample

public static <T> Observable.OnSubscribeFunc<T> sample(Observable<? extends T> source,
                                                       long period,
                                                       java.util.concurrent.TimeUnit unit)
Samples the observable sequence at each interval.


sample

public static <T> Observable.OnSubscribeFunc<T> sample(Observable<? extends T> source,
                                                       long period,
                                                       java.util.concurrent.TimeUnit unit,
                                                       Scheduler scheduler)
Samples the observable sequence at each interval.