public static enum MessageSource.BackPressureStrategy extends Enum<MessageSource.BackPressureStrategy>
Enum Constant and Description |
---|
DROP
On back-pressure drop the
CoreEvent by immediately completing
EventContext with no result without performing any processing. |
FAIL
|
WAIT
On back-pressure block the current thread and wait until the
CoreEvent can be
accepted. |
Modifier and Type | Method and Description |
---|---|
static MessageSource.BackPressureStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageSource.BackPressureStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageSource.BackPressureStrategy FAIL
public static final MessageSource.BackPressureStrategy WAIT
CoreEvent
can be
accepted.public static final MessageSource.BackPressureStrategy DROP
CoreEvent
by immediately completing
EventContext
with no result without performing any processing.public static MessageSource.BackPressureStrategy[] values()
for (MessageSource.BackPressureStrategy c : MessageSource.BackPressureStrategy.values()) System.out.println(c);
public static MessageSource.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 © 2018. All rights reserved.