java.lang.Object
io.smallrye.mutiny.groups.MultiOverflow<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuffer()When the downstream cannot keep up with the upstream emissions, instruct to use a bounded buffer of the default size to store the items until they are consumed.buffer(int size) When the downstream cannot keep up with the upstream emissions, instruct to use a buffer of sizesizeto store the items until they are consumed.When the downstream cannot keep up with the upstream emissions, instruct to use an unbounded buffer to store the items until they are consumed.Define an overflow dropped item mapper to aUni.Define an overflow callback to aUni.drop()When the downstream cannot keep up with the upstream emissions, instruct to drop the item.When the downstream cannot keep up with the upstream emissions, instruct to drop all previously buffered items.Define an overflow callback.Define an overflow callback.
-
Constructor Details
-
MultiOverflow
-
-
Method Details
-
bufferUnconditionally
When the downstream cannot keep up with the upstream emissions, instruct to use an unbounded buffer to store the items until they are consumed.- Returns:
- the new multi
-
buffer
When the downstream cannot keep up with the upstream emissions, instruct to use a bounded buffer of the default size to store the items until they are consumed.- Returns:
- the new multi
- See Also:
-
buffer
When the downstream cannot keep up with the upstream emissions, instruct to use a buffer of sizesizeto store the items until they are consumed. When the buffer is full, aBackPressureFailureis propagated downstream and the upstream source is cancelled.- Parameters:
size- the size of the buffer, must be strictly positive- Returns:
- the new multi
-
drop
When the downstream cannot keep up with the upstream emissions, instruct to drop the item.- Returns:
- the new multi
-
dropPreviousItems
When the downstream cannot keep up with the upstream emissions, instruct to drop all previously buffered items.- Returns:
- the new multi
-
invoke
Define an overflow callback.- Parameters:
consumer- the dropped item consumer, must not benull, must not returnnull- Returns:
- an object to select the overflow management strategy
-
invoke
Define an overflow callback.- Parameters:
callback- a callback when overflow happens, must not benull, must not returnnull- Returns:
- an object to select the overflow management strategy
-
call
Define an overflow callback to aUni.- Parameters:
supplier- a supplier of aUni, must not benull, must not returnnull- Returns:
- an object to select the overflow management strategy
-
call
Define an overflow dropped item mapper to aUni.- Parameters:
mapper- a mapper of a dropped item to aUni, must not benull, must not returnnull- Returns:
- an object to select the overflow management strategy
-