Package de.otto.synapse.message
Enum Class DefaultHeaderAttr
- All Implemented Interfaces:
HeaderAttr,Serializable,Comparable<DefaultHeaderAttr>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe header attribute containing the KinesisRecord#approximateArrivalTimestamp()to which the message has arrived in Kinesis.Unique identifier of the message.The timestamp to which the message was received by aMessageReceiverEndpoint.The sender of the message.The timestamp to which the message was sent. -
Method Summary
Modifier and TypeMethodDescriptionkey()static DefaultHeaderAttrReturns the enum constant of this class with the specified name.static DefaultHeaderAttr[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface de.otto.synapse.message.HeaderAttr
name
-
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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
key
- Specified by:
keyin interfaceHeaderAttr
-