Package rx.internal.operators
Class OperatorOnBackpressureBuffer<T>
java.lang.Object
rx.internal.operators.OperatorOnBackpressureBuffer<T>
- All Implemented Interfaces:
Func1<Subscriber<? super T>,,Subscriber<? super T>> Function,Observable.Operator<T,T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Longprivate final Action0private final BackpressureOverflow.Strategy -
Constructor Summary
ConstructorsConstructorDescriptionOperatorOnBackpressureBuffer(long capacity) Construct a new instance that will handle overflows withON_OVERFLOW_DEFAULT, providing the following behavior config:OperatorOnBackpressureBuffer(long capacity, Action0 onOverflow) Construct a new instance that will handle overflows withON_OVERFLOW_DEFAULT, providing the following behavior config:OperatorOnBackpressureBuffer(long capacity, Action0 onOverflow, BackpressureOverflow.Strategy overflowStrategy) Construct a new instance feeding the following behavior config: -
Method Summary
Modifier and TypeMethodDescriptionSubscriber<? super T> call(Subscriber<? super T> child) static <T> OperatorOnBackpressureBuffer<T> instance()
-
Field Details
-
capacity
-
onOverflow
-
overflowStrategy
-
-
Constructor Details
-
OperatorOnBackpressureBuffer
OperatorOnBackpressureBuffer() -
OperatorOnBackpressureBuffer
public OperatorOnBackpressureBuffer(long capacity) Construct a new instance that will handle overflows withON_OVERFLOW_DEFAULT, providing the following behavior config:- Parameters:
capacity- the max number of items to be admitted in the buffer, must be greater than 0.
-
OperatorOnBackpressureBuffer
Construct a new instance that will handle overflows withON_OVERFLOW_DEFAULT, providing the following behavior config:- Parameters:
capacity- the max number of items to be admitted in the buffer, must be greater than 0.onOverflow- theAction0to execute when the buffer overflows, may be null.
-
OperatorOnBackpressureBuffer
public OperatorOnBackpressureBuffer(long capacity, Action0 onOverflow, BackpressureOverflow.Strategy overflowStrategy) Construct a new instance feeding the following behavior config:- Parameters:
capacity- the max number of items to be admitted in the buffer, must be greater than 0.onOverflow- theAction0to execute when the buffer overflows, may be null.overflowStrategy- theBackpressureOverflow.Strategyto handle overflows, it must not be null.
-
-
Method Details
-
instance
-
call
- Specified by:
callin interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-