public static enum MessageQueue.DiscardAction extends Enum<MessageQueue.DiscardAction>
| Enum Constant and Description |
|---|
newest
Discard newest messages once threshold is reached.
|
none
Never discard; has potential to run out of memory.
|
oldest
Discard oldest messages once threshold is reached.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageQueue.DiscardAction |
lookup(String value) |
static MessageQueue.DiscardAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageQueue.DiscardAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageQueue.DiscardAction none
public static final MessageQueue.DiscardAction oldest
public static final MessageQueue.DiscardAction newest
public static MessageQueue.DiscardAction[] values()
for (MessageQueue.DiscardAction c : MessageQueue.DiscardAction.values()) System.out.println(c);
public static MessageQueue.DiscardAction 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 static MessageQueue.DiscardAction lookup(String value)
Copyright © 2023. All rights reserved.