public final class FlowableTransformers
extends java.lang.Object
FlowableTransformer,
use Flowable.compose(FlowableTransformer)
to apply the operators to an existing sequence.| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.FlowableTransformer<T,T> |
valve(org.reactivestreams.Publisher<java.lang.Boolean> other)
Relays values until the other Publisher signals false and resumes if the other
Publisher signals true again, like closing and opening a valve and not losing
any items from the main source.
|
static <T> io.reactivex.FlowableTransformer<T,T> |
valve(org.reactivestreams.Publisher<java.lang.Boolean> other,
boolean defaultOpen)
Relays values until the other Publisher signals false and resumes if the other
Publisher signals true again, like closing and opening a valve and not losing
any items from the main source and starts with the specivied valve state.
|
static <T> io.reactivex.FlowableTransformer<T,T> |
valve(org.reactivestreams.Publisher<java.lang.Boolean> other,
boolean defaultOpen,
int bufferSize)
Relays values until the other Publisher signals false and resumes if the other
Publisher signals true again, like closing and opening a valve and not losing
any items from the main source and starts with the specivied valve state and the specified
buffer size hint.
|
@SchedulerSupport(value="none") @BackpressureSupport(value=PASS_THROUGH) public static <T> io.reactivex.FlowableTransformer<T,T> valve(org.reactivestreams.Publisher<java.lang.Boolean> other)
Properties:
IllegalStateException.Scheduler.Flowable.bufferSize() to hold onto values if the valve is closed.T - the value type of the main sourceother - the other sourcejava.lang.NullPointerException - if other is nullpublic static <T> io.reactivex.FlowableTransformer<T,T> valve(org.reactivestreams.Publisher<java.lang.Boolean> other,
boolean defaultOpen)
Properties:
IllegalStateException.Scheduler.Flowable.bufferSize() to hold onto values if the valve is closed.T - the value type of the main sourceother - the other sourcedefaultOpen - should the valve start as open?java.lang.NullPointerException - if other is nullpublic static <T> io.reactivex.FlowableTransformer<T,T> valve(org.reactivestreams.Publisher<java.lang.Boolean> other,
boolean defaultOpen,
int bufferSize)
Properties:
IllegalStateException.Scheduler.T - the value type of the main sourceother - the other sourcedefaultOpen - should the valve start as open?bufferSize - the buffer size hint (the chunk size of the underlying unbounded buffer)java.lang.IllegalArgumentException - if bufferSize <= 0java.lang.NullPointerException - if other is null