public static enum BlaubotChannelConfig.MessagePickerStrategy extends java.lang.Enum<BlaubotChannelConfig.MessagePickerStrategy>
Enum Constant and Description |
---|
DISCARD_NEW
Picks the oldest message in the queue and discards all newer ones.
|
DISCARD_OLD
Picks the newest message in the queue and removes all older messages without sending them.
|
PROCESS_ALL
Messages are picked one by one and all are processed sequentally
|
Modifier and Type | Method and Description |
---|---|
static BlaubotChannelConfig.MessagePickerStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlaubotChannelConfig.MessagePickerStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlaubotChannelConfig.MessagePickerStrategy PROCESS_ALL
public static final BlaubotChannelConfig.MessagePickerStrategy DISCARD_OLD
public static final BlaubotChannelConfig.MessagePickerStrategy DISCARD_NEW
public static BlaubotChannelConfig.MessagePickerStrategy[] values()
for (BlaubotChannelConfig.MessagePickerStrategy c : BlaubotChannelConfig.MessagePickerStrategy.values()) System.out.println(c);
public static BlaubotChannelConfig.MessagePickerStrategy 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