public enum BackpressureOverflowStrategy extends java.lang.Enum<BackpressureOverflowStrategy>
Enum Constant and Description |
---|
DROP_LATEST
Drop the latest value from the buffer.
|
DROP_OLDEST
Drop the oldest value from the buffer.
|
ERROR
Signal a MissingBackpressureException and terminate the sequence.
|
Modifier and Type | Method and Description |
---|---|
static BackpressureOverflowStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BackpressureOverflowStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackpressureOverflowStrategy ERROR
public static final BackpressureOverflowStrategy DROP_OLDEST
public static final BackpressureOverflowStrategy DROP_LATEST
public static BackpressureOverflowStrategy[] values()
for (BackpressureOverflowStrategy c : BackpressureOverflowStrategy.values()) System.out.println(c);
public static BackpressureOverflowStrategy 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