Package com.linkedin.alpini.base.queuing
Enum QOSPolicy
- java.lang.Object
-
- java.lang.Enum<QOSPolicy>
-
- com.linkedin.alpini.base.queuing.QOSPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QOSPolicy.Config
static class
QOSPolicy.StaticConfig
-
Enum Constant Summary
Enum Constants Enum Constant Description FCFS
HIGHEST_PRIORITY_W_FAIR_ALLOCATION
HIGHEST_PRIORITY_W_FAIR_ALLOCATION_MULTI_QUEUE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <T extends QOSBasedRequestRunnable>
SimpleQueue<T>buildQueue(QOSPolicy.StaticConfig qosPolicyConfig)
static <T extends QOSBasedRequestRunnable>
SimpleQueue<T>getQOSPolicy(QOSPolicy.StaticConfig qosPolicyConfig)
static QOSPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static QOSPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static QOSPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QOSPolicy c : QOSPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QOSPolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
buildQueue
protected abstract <T extends QOSBasedRequestRunnable> SimpleQueue<T> buildQueue(QOSPolicy.StaticConfig qosPolicyConfig)
-
getQOSPolicy
public static <T extends QOSBasedRequestRunnable> SimpleQueue<T> getQOSPolicy(QOSPolicy.StaticConfig qosPolicyConfig)
-
-