T - of the observable items to buffer.public class ClearableBufferProcessor<T>
extends java.lang.Object
RunState, which is provided by another Flowable, is
RunState.RUNNING.
The following input Flowable can/must be provided:
setInput(Flowable)): This Flowable provides the elements which have to be buffered.
This Flowable has to be provided (else the resulting Flowable will simply never publish anything).
setRunState(Flowable)): The items of the input Flowable are only propagated
when the run state is equal to RunState.RUNNING. If this Flowable is not provided or never emits any item,
then the state is considered as being RunState.RUNNING all the time.
setClearTrigger(Flowable)): Each time a new item is received on this Flowable, a new
(empty) buffer is created, which then fills up.
The possible options are:
setBufferSize(int): The size of the buffers. The default value for this is
.
#setSkip(int): the number items of the input variable to skip. The default value for this is
.
setMinEmitSize(int): This is the first index at which the first buffer starts emitting. This buffer then
fills up and is emitted when it is full. All following buffers are only emitted once. The default value for this is
.
| Constructor and Description |
|---|
ClearableBufferProcessor() |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Flowable<java.util.List<T>> |
bufferedContent() |
void |
setBufferSize(io.reactivex.Flowable<java.lang.Integer> bufferSize) |
void |
setBufferSize(int bufferSize) |
void |
setClearTrigger(io.reactivex.Flowable<?> triggerClear) |
void |
setInput(io.reactivex.Flowable<T> input) |
void |
setMinEmitSize(int minEmitSize) |
void |
setRunState(io.reactivex.Flowable<RunState> runState) |
void |
setRunState(RunState runState) |
public void setClearTrigger(io.reactivex.Flowable<?> triggerClear)
public io.reactivex.Flowable<java.util.List<T>> bufferedContent()
public void setMinEmitSize(int minEmitSize)
public void setBufferSize(int bufferSize)
public void setBufferSize(io.reactivex.Flowable<java.lang.Integer> bufferSize)
public void setInput(io.reactivex.Flowable<T> input)
public void setRunState(RunState runState)
public void setRunState(io.reactivex.Flowable<RunState> runState)