Package jline.lang.constant
Enum PollingOrder
- All Implemented Interfaces:
Serializable,Comparable<PollingOrder>,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PollingOrderInverse oftoName(jline.lang.constant.PollingOrder), case-insensitive.static PollingOrderfromValue(int value) intgetValue()static StringtoName(PollingOrder type) Canonical name used on the JSON wire.static StringtoText(PollingOrder type) static PollingOrderReturns the enum constant of this type with the specified name.static PollingOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CYCLIC
-
SKIPEMPTY
-
LQF
-
THRESHOLD
-
-
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
-
getValue
public int getValue() -
fromValue
-
toText
-
toName
Canonical name used on the JSON wire. -
fromName
Inverse oftoName(jline.lang.constant.PollingOrder), case-insensitive.
-