Package io.pravega.client.stream
Enum ScalingPolicy.ScaleType
- java.lang.Object
-
- java.lang.Enum<ScalingPolicy.ScaleType>
-
- io.pravega.client.stream.ScalingPolicy.ScaleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScalingPolicy.ScaleType>
- Enclosing class:
- ScalingPolicy
public static enum ScalingPolicy.ScaleType extends java.lang.Enum<ScalingPolicy.ScaleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BY_RATE_IN_EVENTS_PER_SEC
Scale based on the rate in events specified inScalingPolicy.targetRate
.BY_RATE_IN_KBYTES_PER_SEC
Scale based on the rate in bytes specified inScalingPolicy.targetRate
.FIXED_NUM_SEGMENTS
No scaling, there will only ever beScalingPolicy.minNumSegments
at any given time.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getValue()
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.
-
-
-
Enum Constant Detail
-
FIXED_NUM_SEGMENTS
public static final ScalingPolicy.ScaleType FIXED_NUM_SEGMENTS
No scaling, there will only ever beScalingPolicy.minNumSegments
at any given time.
-
BY_RATE_IN_KBYTES_PER_SEC
public static final ScalingPolicy.ScaleType BY_RATE_IN_KBYTES_PER_SEC
Scale based on the rate in bytes specified inScalingPolicy.targetRate
.
-
BY_RATE_IN_EVENTS_PER_SEC
public static final ScalingPolicy.ScaleType BY_RATE_IN_EVENTS_PER_SEC
Scale based on the rate in events specified inScalingPolicy.targetRate
.
-
-
Method Detail
-
values
public static ScalingPolicy.ScaleType[] 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 (ScalingPolicy.ScaleType c : ScalingPolicy.ScaleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScalingPolicy.ScaleType 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
-
getValue
public byte getValue()
-
-