Enum Class QueueState

java.lang.Object
java.lang.Enum<QueueState>
com.btcvelocity.api.queue.QueueState
All Implemented Interfaces:
Serializable, Comparable<QueueState>, Constable

public enum QueueState extends Enum<QueueState>
Represents the operational state of a Queue.
  • Enum Constant Details

    • INACTIVE

      public static final QueueState INACTIVE
      The queue is not active and does not process or accept players.
    • ACTIVE

      public static final QueueState ACTIVE
      The queue is active and will transfer players to the backend server when it is available.
    • PAUSED

      public static final QueueState PAUSED
      The queue is paused and will not transfer players until it is resumed.
  • Method Details

    • values

      public static QueueState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static QueueState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null