Enum ProducerField
- java.lang.Object
-
- java.lang.Enum<ProducerField>
-
- org.apache.activemq.artemis.core.management.impl.view.ProducerField
-
- All Implemented Interfaces:
Serializable,Comparable<ProducerField>
public enum ProducerField extends Enum<ProducerField>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESSCLIENT_IDCONNECTION_IDCREATION_TIMEIDLAST_PRODUCED_MESSAGE_IDLOCAL_ADDRESSMESSAGE_SENTMESSAGE_SENT_SIZENAMEPROTOCOLREMOTE_ADDRESSSESSIONUSERVALIDATED_USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlternativeName()There is some inconsistency with some json objects returned for consumers because they were hard coded.StringgetName()static ProducerFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static ProducerFieldvalueOfName(String name)static ProducerField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final ProducerField ID
-
NAME
public static final ProducerField NAME
-
SESSION
public static final ProducerField SESSION
-
CONNECTION_ID
public static final ProducerField CONNECTION_ID
-
ADDRESS
public static final ProducerField ADDRESS
-
USER
public static final ProducerField USER
-
VALIDATED_USER
public static final ProducerField VALIDATED_USER
-
PROTOCOL
public static final ProducerField PROTOCOL
-
CLIENT_ID
public static final ProducerField CLIENT_ID
-
LOCAL_ADDRESS
public static final ProducerField LOCAL_ADDRESS
-
REMOTE_ADDRESS
public static final ProducerField REMOTE_ADDRESS
-
CREATION_TIME
public static final ProducerField CREATION_TIME
-
MESSAGE_SENT
public static final ProducerField MESSAGE_SENT
-
MESSAGE_SENT_SIZE
public static final ProducerField MESSAGE_SENT_SIZE
-
LAST_PRODUCED_MESSAGE_ID
public static final ProducerField LAST_PRODUCED_MESSAGE_ID
-
-
Method Detail
-
values
public static ProducerField[] 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 (ProducerField c : ProducerField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProducerField 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
-
getName
public String getName()
-
getAlternativeName
public String getAlternativeName()
There is some inconsistency with some json objects returned for consumers because they were hard coded. This is just to track the differences and provide backward compatibility.- Returns:
- the old alternative name
-
valueOfName
public static ProducerField valueOfName(String name)
-
-