public enum BackpressureStrategy extends java.lang.Enum<BackpressureStrategy>
Enum Constant and Description |
---|
BUFFER
Buffer all values (unbounded) until there is a downstream demand for it.
|
DROP
Drop the value if there is no current demand for it from the downstream.
|
LATEST
Have a latest value always available and overwrite it with more recent ones
if there is no demand for it from the downstream.
|
Modifier and Type | Method and Description |
---|---|
static BackpressureStrategy |
valueOf(java.lang.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
public static final BackpressureStrategy DROP
public static final BackpressureStrategy LATEST
public static BackpressureStrategy[] values()
for (BackpressureStrategy c : BackpressureStrategy.values()) System.out.println(c);
public static BackpressureStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null