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
Sends an error signal to the downstream subscriber in the case where it 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.
|
THROW_EXCEPTION
Causes an
IllegalStateException to be thrown by the Emitter.send method if the downstream can't keep
up. |
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 IllegalStateException
will be thrown by the Emitter.send
method.
public static final OnOverflow.Strategy UNBOUNDED_BUFFER
public static final OnOverflow.Strategy THROW_EXCEPTION
IllegalStateException
to be thrown by the Emitter.send
method if the downstream can't keep
up.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.