public class MultiOverflow<T> extends Object
| Constructor and Description |
|---|
MultiOverflow(Multi<T> upstream) |
| Modifier and Type | Method and Description |
|---|---|
Multi<T> |
buffer()
When the downstream cannot keep up with the upstream emissions, instruct to use an unbounded
buffer to store the items until they are consumed.
|
Multi<T> |
buffer(int size)
When the downstream cannot keep up with the upstream emissions, instruct to use a buffer of size
size
to store the items until they are consumed. |
static <T> Multi<T> |
buffer(Multi<T> upstream,
int size) |
Multi<T> |
drop()
When the downstream cannot keep up with the upstream emissions, instruct to drop the item.
|
Multi<T> |
drop(Consumer<T> callback)
When the downstream cannot keep up with the upstream emissions, instruct to drop the item.
|
Multi<T> |
dropPreviousItems()
When the downstream cannot keep up with the upstream emissions, instruct to drop all previously buffered items.
|
public Multi<T> buffer()
public Multi<T> buffer(int size)
size
to store the items until they are consumed. When the buffer is full, a BackPressureFailure is propagated
downstream and the upstream source is cancelled.size - the size of the buffer, must be strictly positivepublic Multi<T> drop()
public Multi<T> drop(Consumer<T> callback)
callback - a callback invoked when an item is dropped. The callback receives the item. Must not be
nullCopyright © 2019–2020 SmallRye. All rights reserved.