- All Implemented Interfaces:
Serializable
,Comparable<QueueDeletePolicy>
Policy for determining if a queue can be deleted.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA queue must be empty and not processing any more elements before it can be deletedA queue can never be deletedA queue will not accept new entries once delete() is called and will be deleted when it is empty and not processing any more elements -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueDeletePolicy
Returns the enum constant of this type with the specified name.static QueueDeletePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MUST_BE_EMPTY
A queue must be empty and not processing any more elements before it can be deleted -
WHEN_EMPTY
A queue will not accept new entries once delete() is called and will be deleted when it is empty and not processing any more elements -
NEVER
A queue can never be deleted
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-