Enum Messages

java.lang.Object
java.lang.Enum<Messages>
com.azure.messaging.eventhubs.Messages
All Implemented Interfaces:
Serializable, Comparable<Messages>, java.lang.constant.Constable

public enum Messages extends Enum<Messages>
I18n messages loaded from the messages.properties file located within the same package.
  • Field Details

    • CLASS_NOT_A_SUPPORTED_TYPE

      public static final String CLASS_NOT_A_SUPPORTED_TYPE
      Class not a supported type message.
    • ENCODING_TYPE_NOT_SUPPORTED

      public static final String ENCODING_TYPE_NOT_SUPPORTED
      Encoding type not supported message.
    • PROCESS_SPAN_SCOPE_TYPE_ERROR

      public static final String PROCESS_SPAN_SCOPE_TYPE_ERROR
      Process span scope type error message.
    • MESSAGE_NOT_OF_TYPE

      public static final String MESSAGE_NOT_OF_TYPE
      Message not of type message.
    • REQUEST_VALUE_NOT_VALID

      public static final String REQUEST_VALUE_NOT_VALID
      Request value not valid message.
    • EVENT_DATA_DOES_NOT_FIT

      public static final String EVENT_DATA_DOES_NOT_FIT
      Event data doesn't fit message.
    • CANNOT_SEND_EVENT_BATCH_EMPTY

      public static final String CANNOT_SEND_EVENT_BATCH_EMPTY
      Cannot send empty event batch message.
    • ERROR_SENDING_BATCH

      public static final String ERROR_SENDING_BATCH
      Error sending batch message.
    • FAILED_TO_CLAIM_OWNERSHIP

      public static final String FAILED_TO_CLAIM_OWNERSHIP
      Failed to claim ownership message.
    • LOAD_BALANCING_FAILED

      public static final String LOAD_BALANCING_FAILED
      Load balancing failed message.
    • EVENT_PROCESSOR_RUN_END

      public static final String EVENT_PROCESSOR_RUN_END
      Event processor run end message.
    • FAILED_CLOSE_CONSUMER_PARTITION

      public static final String FAILED_CLOSE_CONSUMER_PARTITION
      Failed to close consumer partition message.
    • ERROR_OCCURRED_IN_SUBSCRIBER_ERROR

      public static final String ERROR_OCCURRED_IN_SUBSCRIBER_ERROR
      Error occurred in subscriber error message.
    • EXCEPTION_OCCURRED_WHILE_EMITTING

      public static final String EXCEPTION_OCCURRED_WHILE_EMITTING
      Exception occurred while emitting message.
  • Method Details

    • values

      public static Messages[] 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

      public static Messages 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 name
      NullPointerException - if the argument is null
    • getMessage

      public static String getMessage(String key)
      Parameters:
      key - the key of the message to retrieve
      Returns:
      the message matching the given key