public enum BackPressureMode extends Enum<BackPressureMode>
Enum Constant and Description |
---|
DROP
Apply back pressure by dropping the filtered event
|
FAIL
Reject the event by throwing an error
|
WAIT
Apply back pressure by blocking the
SourceCallback.handle(Result) method |
Modifier and Type | Method and Description |
---|---|
static BackPressureMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackPressureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackPressureMode FAIL
public static final BackPressureMode WAIT
SourceCallback.handle(Result)
methodpublic static final BackPressureMode DROP
public static BackPressureMode[] values()
for (BackPressureMode c : BackPressureMode.values()) System.out.println(c);
public static BackPressureMode 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. All rights reserved.