Class OperatorSampleWithTime<T>

  • Type Parameters:
    T - the value type
    All Implemented Interfaces:
    Func1<Subscriber<? super T>,​Subscriber<? super T>>, Function, Observable.Operator<T,​T>

    public final class OperatorSampleWithTime<T>
    extends java.lang.Object
    implements Observable.Operator<T,​T>
    Returns an Observable that emits the results of sampling the items emitted by the source Observable at a specified time interval.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Scheduler scheduler  
      (package private) long time  
      (package private) java.util.concurrent.TimeUnit unit  
    • Constructor Summary

      Constructors 
      Constructor Description
      OperatorSampleWithTime​(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Subscriber<? super T> call​(Subscriber<? super T> child)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • time

        final long time
      • unit

        final java.util.concurrent.TimeUnit unit
    • Constructor Detail

      • OperatorSampleWithTime

        public OperatorSampleWithTime​(long time,
                                      java.util.concurrent.TimeUnit unit,
                                      Scheduler scheduler)