public enum BackpressureOverflowStrategy extends 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(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
MissingBackpressureException
and terminate the sequence.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(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 null