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 values if the downstream can't keep up.
|
NONE
The values are propagated without any back pressure strategy.
|
UNBOUNDED_BUFFER
Buffers all values until the downstream consumes it.
|
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()
if present.
Otherwise, the size will be the value of the config property
mp.messaging.emitter.default-buffer-size.
If the buffer is full, an error will be propagated.public static final OnOverflow.Strategy UNBOUNDED_BUFFER
OutOfMemory
.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–2021 SmallRye. All rights reserved.