Enum Class DefaultHeaderAttr

java.lang.Object
java.lang.Enum<DefaultHeaderAttr>
de.otto.synapse.message.DefaultHeaderAttr
All Implemented Interfaces:
HeaderAttr, Serializable, Comparable<DefaultHeaderAttr>, Constable

public enum DefaultHeaderAttr extends Enum<DefaultHeaderAttr> implements HeaderAttr
  • Enum Constant Details

    • MSG_ID

      public static final DefaultHeaderAttr MSG_ID
      Unique identifier of the message.

      The attribute key is synapse_msg_id

    • MSG_SENDER

      public static final DefaultHeaderAttr MSG_SENDER
      The sender of the message.

      Using the DefaultSenderHeadersInterceptor, the attribute's value is configured using SynapseProperties.Sender.getName() and defaults to the value of property spring.application.name.

      The attribute key is synapse_msg_sender

    • MSG_ARRIVAL_TS

      public static final DefaultHeaderAttr MSG_ARRIVAL_TS
      The header attribute containing the Kinesis Record#approximateArrivalTimestamp() to which the message has arrived in Kinesis. Other channel implementations may use this attribute for similar timestamps, as long as the semantics of the property is the met.

      The attribute key is synapse_msg_arrival_ts

    • MSG_SENDER_TS

      public static final DefaultHeaderAttr MSG_SENDER_TS
      The timestamp to which the message was sent.

      The attribute key is synapse_msg_sender_ts

    • MSG_RECEIVER_TS

      public static final DefaultHeaderAttr MSG_RECEIVER_TS
      The timestamp to which the message was received by a MessageReceiverEndpoint.

      The attribute key is synapse_msg_receiver_ts

  • Method Details

    • values

      public static DefaultHeaderAttr[] 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 DefaultHeaderAttr 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
    • key

      public String key()
      Specified by:
      key in interface HeaderAttr