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>,java.lang.constant.Constable
public enum DefaultHeaderAttr extends java.lang.Enum<DefaultHeaderAttr> implements HeaderAttr
-
Nested Class Summary
-
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
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.
-
Enum Constant Details
-
MSG_ID
Unique identifier of the message.The attribute key is
synapse_msg_id -
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
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
The timestamp to which the message was sent.The attribute key is
synapse_msg_sender_ts -
MSG_RECEIVER_TS
The timestamp to which the message was received by aMessageReceiverEndpoint.The attribute key is
synapse_msg_receiver_ts
-
-
Method Details
-
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
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
-