Package rx.internal.operators
Class OperatorOnBackpressureLatest<T>
java.lang.Object
rx.internal.operators.OperatorOnBackpressureLatest<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 OperatorOnBackpressureLatest<T>
extends Object
implements Observable.Operator<T,T>
An operator which drops all but the last received value in case the downstream
doesn't request more.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classHolds a singleton instance initialized on class-loading.(package private) static final classA terminable producer which emits the latest items on request.(package private) static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubscriber<? super T> call(Subscriber<? super T> child) static <T> OperatorOnBackpressureLatest<T> instance()Returns a singleton instance of the OnBackpressureLatest operator since it is stateless.
-
Constructor Details
-
OperatorOnBackpressureLatest
public OperatorOnBackpressureLatest()
-
-
Method Details
-
instance
Returns a singleton instance of the OnBackpressureLatest operator since it is stateless.- Type Parameters:
T- the value type- Returns:
- the single instanceof OperatorOnBackpressureLatest
-
call
- Specified by:
callin interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-