public static enum OnOverflow.Strategy extends Enum<OnOverflow.Strategy>
| Enum Constant and Description |
|---|
BUFFER
Buffers all values until the downstream consumes it.
|
DROP
Drops the most recent value if the downstream can't keep up.
|
FAIL
Propagates a failure in case the downstream can't keep up.
|
LATEST
Keeps only the latest value, dropping any previous value if the downstream can't keep up.
|
NONE
The values are propagated without any back pressure strategy.
|
| Modifier and Type | Method and Description |
|---|---|
static OnOverflow.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnOverflow.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnOverflow.Strategy BUFFER
OnOverflow.bufferSize() to limit the size of the
buffer. If the buffer is full, an error is propagated.public static final OnOverflow.Strategy DROP
public static final OnOverflow.Strategy FAIL
public static final OnOverflow.Strategy LATEST
public static final OnOverflow.Strategy NONE
public static OnOverflow.Strategy[] values()
for (OnOverflow.Strategy c : OnOverflow.Strategy.values()) System.out.println(c);
public static OnOverflow.Strategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2019 SmallRye. All rights reserved.