public enum MaximumOpenItemsPolicy extends Enum<MaximumOpenItemsPolicy>
Enum Constant and Description |
---|
DISCARD
Discards new messages when the maximum amount of open items is reached.
|
QUEUE
Puts new messages in queue.
|
Modifier and Type | Method and Description |
---|---|
static MaximumOpenItemsPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaximumOpenItemsPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaximumOpenItemsPolicy QUEUE
public static final MaximumOpenItemsPolicy DISCARD
public static MaximumOpenItemsPolicy[] values()
for (MaximumOpenItemsPolicy c : MaximumOpenItemsPolicy.values()) System.out.println(c);
public static MaximumOpenItemsPolicy 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 null