public enum BackPressureStrategy extends Enum<BackPressureStrategy>
| Enum Constant and Description |
|---|
BUFFER
Buffer the events.
|
DROP
Drop the incoming item events if the downstream is not ready to receive it.
|
ERROR
Fire a failure with a
BackPressureFailure when the downstream can't keep up |
IGNORE
Ignore downstream back-pressure requests.
|
LATEST
Drop the oldest item events from the buffer so the downstream will get only the latest items from upstream.
|
| Modifier and Type | Method and Description |
|---|---|
static BackPressureStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackPressureStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackPressureStrategy BUFFER
OutOfMemoryError as it uses
unbounded buffer.public static final BackPressureStrategy DROP
public static final BackPressureStrategy ERROR
BackPressureFailure when the downstream can't keep uppublic static final BackPressureStrategy IGNORE
This may cause an BackPressureFailure to be fired when queues get full downstream.
public static final BackPressureStrategy LATEST
public static BackPressureStrategy[] values()
for (BackPressureStrategy c : BackPressureStrategy.values()) System.out.println(c);
public static BackPressureStrategy 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 © 2019–2020 SmallRye. All rights reserved.