Enum DefaultHeaderAttr

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

public enum DefaultHeaderAttr
extends java.lang.Enum<DefaultHeaderAttr>
implements HeaderAttr
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    MSG_ARRIVAL_TS
    The header attribute containing the Kinesis Record#approximateArrivalTimestamp() to which the message has arrived in Kinesis.
    MSG_ID
    Unique identifier of the message.
    MSG_RECEIVER_TS
    The timestamp to which the message was received by a MessageReceiverEndpoint.
    MSG_SENDER
    The sender of the message.
    MSG_SENDER_TS
    The timestamp to which the message was sent.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String key()  
    static DefaultHeaderAttr valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static DefaultHeaderAttr[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface de.otto.synapse.message.HeaderAttr

    name
  • 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 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 DefaultHeaderAttr valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • key

      public java.lang.String key()
      Specified by:
      key in interface HeaderAttr