Package org.apache.camel.trait.message
Enum Class MessageTrait
- All Implemented Interfaces:
Serializable
,Comparable<MessageTrait>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the message can store a data type.The redelivery trait for the message. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageTrait
Returns the enum constant of this class with the specified name.static MessageTrait[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REDELIVERY
The redelivery trait for the message. SeeRedeliveryTraitPayload
. -
DATA_AWARE
Whether the message can store a data type. This carries the payload associated with the API specified inDataTypeAware
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-