Enum Class RedeliveryTraitPayload

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

public enum RedeliveryTraitPayload extends Enum<RedeliveryTraitPayload>
Some messages can carry redelivery details which might affect routing (i.e; JMS messages). This trait allows implementations to assign a payload that determines the redelivery state for the message.
  • Enum Constant Details

    • UNDEFINED_REDELIVERY

      public static final RedeliveryTraitPayload UNDEFINED_REDELIVERY
      The default redelivery payload, as most messages don't support redeliveries
    • NON_REDELIVERY

      public static final RedeliveryTraitPayload NON_REDELIVERY
      When a message supports redelivery, this indicates that this message is in a non-redelivery state
    • IS_REDELIVERY

      public static final RedeliveryTraitPayload IS_REDELIVERY
      When a message supports redelivery, this indicates that this message is in a redelivery state
  • Method Details

    • values

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