Enum PollingOrder

java.lang.Object
java.lang.Enum<PollingOrder>
jline.lang.constant.PollingOrder
All Implemented Interfaces:
Serializable, Comparable<PollingOrder>, java.lang.constant.Constable

public enum PollingOrder extends Enum<PollingOrder>
Visit-ordering rule of a polling server (Haverkort section 16.2.4).
  • CYCLIC - fixed order: 1..R, or the polling table of Queue.setPollingTable
  • SKIPEMPTY - next non-empty buffer in cyclic order, the buffer just left last
  • LQF - longest queue first, ties in cyclic order after the buffer just left
  • THRESHOLD - threshold priority policy (Lee and Sengupta): the priority class whenever its buffer holds more than L jobs, else SKIPEMPTY
Twin of MATLAB PollingOrder.m; the ids and wire names agree.
  • Enum Constant Details

  • Method Details

    • values

      public static PollingOrder[] 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 PollingOrder 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
    • getValue

      public int getValue()
    • fromValue

      public static PollingOrder fromValue(int value)
    • toText

      public static String toText(PollingOrder type)
    • toName

      public static String toName(PollingOrder type)
      Canonical name used on the JSON wire.
    • fromName

      public static PollingOrder fromName(String name)
      Inverse of toName(jline.lang.constant.PollingOrder), case-insensitive.