Enum SlowConsumerThresholdMeasurementUnit
- java.lang.Object
-
- java.lang.Enum<SlowConsumerThresholdMeasurementUnit>
-
- org.apache.activemq.artemis.core.settings.impl.SlowConsumerThresholdMeasurementUnit
-
- All Implemented Interfaces:
Serializable,Comparable<SlowConsumerThresholdMeasurementUnit>
public enum SlowConsumerThresholdMeasurementUnit extends Enum<SlowConsumerThresholdMeasurementUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGES_PER_DAYMESSAGES_PER_HOURMESSAGES_PER_MINUTEMESSAGES_PER_SECOND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static TimeUnitunitOf(int measurementUnitInSeconds)static SlowConsumerThresholdMeasurementUnitvalueOf(int measurementUnitInSeconds)Returns the enum constant of this type with the specified name.static SlowConsumerThresholdMeasurementUnitvalueOf(String name)Returns the enum constant of this type with the specified name.static SlowConsumerThresholdMeasurementUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGES_PER_SECOND
public static final SlowConsumerThresholdMeasurementUnit MESSAGES_PER_SECOND
-
MESSAGES_PER_MINUTE
public static final SlowConsumerThresholdMeasurementUnit MESSAGES_PER_MINUTE
-
MESSAGES_PER_HOUR
public static final SlowConsumerThresholdMeasurementUnit MESSAGES_PER_HOUR
-
MESSAGES_PER_DAY
public static final SlowConsumerThresholdMeasurementUnit MESSAGES_PER_DAY
-
-
Method Detail
-
values
public static SlowConsumerThresholdMeasurementUnit[] 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 (SlowConsumerThresholdMeasurementUnit c : SlowConsumerThresholdMeasurementUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SlowConsumerThresholdMeasurementUnit valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static SlowConsumerThresholdMeasurementUnit valueOf(int measurementUnitInSeconds)
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:
measurementUnitInSeconds- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
unitOf
public static TimeUnit unitOf(int measurementUnitInSeconds)
-
getValue
public int getValue()
-
-