public static enum ScalingPolicy.Type extends Enum<ScalingPolicy.Type>
Enum Constant and Description |
---|
BY_RATE_IN_EVENTS_PER_SEC
Scale based on the rate in events specified in
ScalingPolicy.targetRate . |
BY_RATE_IN_KBYTES_PER_SEC
Scale based on the rate in bytes specified in
ScalingPolicy.targetRate . |
FIXED_NUM_SEGMENTS
No scaling, there will only ever be
ScalingPolicy.minNumSegments at any given time. |
Modifier and Type | Method and Description |
---|---|
static ScalingPolicy.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScalingPolicy.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalingPolicy.Type FIXED_NUM_SEGMENTS
ScalingPolicy.minNumSegments
at any given time.public static final ScalingPolicy.Type BY_RATE_IN_KBYTES_PER_SEC
ScalingPolicy.targetRate
.public static final ScalingPolicy.Type BY_RATE_IN_EVENTS_PER_SEC
ScalingPolicy.targetRate
.public static ScalingPolicy.Type[] values()
for (ScalingPolicy.Type c : ScalingPolicy.Type.values()) System.out.println(c);
public static ScalingPolicy.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null