Package rx.internal.operators
Class OperatorThrottleFirst<T>
- java.lang.Object
-
- rx.internal.operators.OperatorThrottleFirst<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 OperatorThrottleFirst<T> extends java.lang.Object implements Observable.Operator<T,T>
Throttle by windowing a stream and returning the first value in each window.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Scheduler
scheduler
(package private) long
timeInMilliseconds
-
Constructor Summary
Constructors Constructor Description OperatorThrottleFirst(long windowDuration, 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> subscriber)
-
-
-
Field Detail
-
timeInMilliseconds
final long timeInMilliseconds
-
scheduler
final Scheduler scheduler
-
-
Constructor Detail
-
OperatorThrottleFirst
public OperatorThrottleFirst(long windowDuration, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
-
-
Method Detail
-
call
public Subscriber<? super T> call(Subscriber<? super T> subscriber)
- Specified by:
call
in interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-
-