Enum ScaleType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ScaleType>

    public enum ScaleType
    extends java.lang.Enum<ScaleType>
    Defines Scale Types for Segments.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EventRate
      Scale based on the rate in events.
      NoScaling
      No scaling.
      Throughput
      Scale based on the rate in bytes.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ScaleType fromValue​(byte value)
      Gets the ScaleType that matches the given id.
      byte getValue()  
      static ScaleType valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NoScaling

        public static final ScaleType NoScaling
        No scaling.
      • Throughput

        public static final ScaleType Throughput
        Scale based on the rate in bytes.
      • EventRate

        public static final ScaleType EventRate
        Scale based on the rate in events.
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • fromValue

        public static ScaleType fromValue​(byte value)
        Gets the ScaleType that matches the given id.
        Parameters:
        value - The Id to match.
        Returns:
        the ScaleType.
      • getValue

        public byte getValue()