Package com.azure.messaging.eventhubs
Enum Messages
- All Implemented Interfaces:
Serializable,Comparable<Messages>,java.lang.constant.Constable
I18n messages loaded from the messages.properties file located within the same package.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCannot send empty event batch message.static final StringClass not a supported type message.static final StringEncoding type not supported message.static final StringError occurred in subscriber error message.static final StringError sending batch message.static final StringEvent data doesn't fit message.static final StringEvent processor run end message.static final StringException occurred while emitting message.static final StringFailed to close consumer partition message.static final StringFailed to claim ownership message.static final StringLoad balancing failed message.static final StringMessage not of type message.static final StringProcess span scope type error message.static final StringRequest value not valid message. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMessage(String key) Gets the message given its corresponding key.static MessagesReturns the enum constant of this type with the specified name.static Messages[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Field Details
-
CLASS_NOT_A_SUPPORTED_TYPE
Class not a supported type message. -
ENCODING_TYPE_NOT_SUPPORTED
Encoding type not supported message. -
PROCESS_SPAN_SCOPE_TYPE_ERROR
Process span scope type error message. -
MESSAGE_NOT_OF_TYPE
Message not of type message. -
REQUEST_VALUE_NOT_VALID
Request value not valid message. -
EVENT_DATA_DOES_NOT_FIT
Event data doesn't fit message. -
CANNOT_SEND_EVENT_BATCH_EMPTY
Cannot send empty event batch message. -
ERROR_SENDING_BATCH
Error sending batch message. -
FAILED_TO_CLAIM_OWNERSHIP
Failed to claim ownership message. -
LOAD_BALANCING_FAILED
Load balancing failed message. -
EVENT_PROCESSOR_RUN_END
Event processor run end message. -
FAILED_CLOSE_CONSUMER_PARTITION
Failed to close consumer partition message. -
ERROR_OCCURRED_IN_SUBSCRIBER_ERROR
Error occurred in subscriber error message. -
EXCEPTION_OCCURRED_WHILE_EMITTING
Exception occurred while emitting message.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getMessage
Gets the message given its corresponding key.- Parameters:
key- the key of the message to retrieve- Returns:
- the message matching the given key
-