public static enum QueueBuilder.Overflow extends Enum<QueueBuilder.Overflow>
Enum Constant and Description |
---|
dropHead
Drop the oldest message.
|
rejectPublish
Reject the new message.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static QueueBuilder.Overflow |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueueBuilder.Overflow[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueueBuilder.Overflow dropHead
public static final QueueBuilder.Overflow rejectPublish
public static QueueBuilder.Overflow[] values()
for (QueueBuilder.Overflow c : QueueBuilder.Overflow.values()) System.out.println(c);
public static QueueBuilder.Overflow 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 nullpublic String getValue()