Enum QueueDeletePolicy

java.lang.Object
java.lang.Enum<QueueDeletePolicy>
org.bzdev.devqsim.QueueDeletePolicy
All Implemented Interfaces:
Serializable, Comparable<QueueDeletePolicy>

public enum QueueDeletePolicy extends Enum<QueueDeletePolicy>
Policy for determining if a queue can be deleted.
  • Enum Constant Details

    • MUST_BE_EMPTY

      public static final QueueDeletePolicy MUST_BE_EMPTY
      A queue must be empty and not processing any more elements before it can be deleted
    • WHEN_EMPTY

      public static final QueueDeletePolicy 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

      public static final QueueDeletePolicy NEVER
      A queue can never be deleted
  • Method Details

    • values

      public static QueueDeletePolicy[] 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

      public static QueueDeletePolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null