Package jline.lang.constant
Enum DropStrategy
- All Implemented Interfaces:
Serializable,Comparable<DropStrategy>,java.lang.constant.Constable
Constants for specifying drop strategies at stations when capacity is exceeded.
ID values match MATLAB DropStrategy constants.
Strategies:
- WaitingQueue: Job waits in queue (default, infinite capacity)
- Drop: Job is rejected and leaves the system
- BlockingAfterService: Job blocks server after service until destination available
- BlockingBeforeService: Job blocks server before service until destination available
- ReServiceOnRejection: Job is re-serviced when rejected
- Retrial: Job moves to orbit and retries after a delay (unlimited attempts)
- RetrialWithLimit: Job moves to orbit with maximum retry attempts, dropped after limit
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DropStrategyfromID(int id) intgetID()static StringtoText(DropStrategy strategy) static DropStrategyReturns the enum constant of this type with the specified name.static DropStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WaitingQueue
-
Drop
-
BlockingAfterService
-
BlockingBeforeService
-
ReServiceOnRejection
-
Retrial
-
RetrialWithLimit
-
-
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
-
getID
public int getID() -
fromID
-
toText
-