public static enum ScalingPolicy.ScaleType extends java.lang.Enum<ScalingPolicy.ScaleType>
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.ScaleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScalingPolicy.ScaleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalingPolicy.ScaleType FIXED_NUM_SEGMENTS
ScalingPolicy.minNumSegments
at any given time.public static final ScalingPolicy.ScaleType BY_RATE_IN_KBYTES_PER_SEC
ScalingPolicy.targetRate
.public static final ScalingPolicy.ScaleType BY_RATE_IN_EVENTS_PER_SEC
ScalingPolicy.targetRate
.public static ScalingPolicy.ScaleType[] values()
for (ScalingPolicy.ScaleType c : ScalingPolicy.ScaleType.values()) System.out.println(c);
public static ScalingPolicy.ScaleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null