Package de.otto.synapse.message
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>
public enum DefaultHeaderAttr extends java.lang.Enum<DefaultHeaderAttr> implements HeaderAttr
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MSG_ARRIVAL_TSThe header attribute containing the KinesisRecord#approximateArrivalTimestamp()to which the message has arrived in Kinesis.MSG_IDUnique identifier of the message.MSG_RECEIVER_TSThe timestamp to which the message was received by aMessageReceiverEndpoint.MSG_SENDERThe sender of the message.MSG_SENDER_TSThe timestamp to which the message was sent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringkey()static DefaultHeaderAttrvalueOf(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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface de.otto.synapse.message.HeaderAttr
name
-
-
-
-
Enum Constant Detail
-
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 usingSynapseProperties.Sender.getName()and defaults to the value of propertyspring.application.name.The attribute key is
synapse_msg_sender
-
MSG_ARRIVAL_TS
public static final DefaultHeaderAttr MSG_ARRIVAL_TS
The header attribute containing the KinesisRecord#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 aMessageReceiverEndpoint.The attribute key is
synapse_msg_receiver_ts
-
-
Method Detail
-
values
public static DefaultHeaderAttr[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultHeaderAttr c : DefaultHeaderAttr.values()) System.out.println(c);
- 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 namejava.lang.NullPointerException- if the argument is null
-
key
public java.lang.String key()
- Specified by:
keyin interfaceHeaderAttr
-
-