Enum Class MessageTrait

java.lang.Object
java.lang.Enum<MessageTrait>
org.apache.camel.trait.message.MessageTrait
All Implemented Interfaces:
Serializable, Comparable<MessageTrait>, Constable

public enum MessageTrait extends Enum<MessageTrait>
Message traits are runtime traits that can be associated with a message (for instance, the redelivery state, a data type, etc). This is specifically for internal usage of Camel and not a public API.
  • Enum Constant Details

    • REDELIVERY

      public static final MessageTrait REDELIVERY
      The redelivery trait for the message. See RedeliveryTraitPayload.
    • DATA_AWARE

      public static final MessageTrait DATA_AWARE
      Whether the message can store a data type. This carries the payload associated with the API specified in DataTypeAware.
  • Method Details

    • values

      public static MessageTrait[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageTrait valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null