Package io.pravega.shared.segment
Enum ScaleType
- java.lang.Object
-
- java.lang.Enum<ScaleType>
-
- io.pravega.shared.segment.ScaleType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EventRateScale based on the rate in events.NoScalingNo scaling.ThroughputScale based on the rate in bytes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScaleTypefromValue(byte value)Gets theScaleTypethat matches the given id.bytegetValue()static ScaleTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ScaleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static 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 (ScaleType c : 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 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
-
fromValue
public static ScaleType fromValue(byte value)
Gets theScaleTypethat matches the given id.- Parameters:
value- The Id to match.- Returns:
- the
ScaleType.
-
getValue
public byte getValue()
-
-