Package de.otto.synapse.message
Class Header
java.lang.Object
de.otto.synapse.message.Header
- All Implemented Interfaces:
Serializable
The Header of a
Message.
Headers contain metadata about a message which may only be available on one side of a
channel: MessageLogReceiverEndpoint, MessageQueueReceiverEndpoint or
AbstractMessageSenderEndpoint might add different information to
the message header.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Header.Builderbuilder()booleancontainsKey(HeaderAttr attr) booleancontainsKey(String key) static Header.Builderbooleanget(HeaderAttr attr) get(HeaderAttr attr, String defaultValue) getAll()getAsInstant(HeaderAttr attr) getAsInstant(HeaderAttr attr, Instant defaultValue) getAsInstant(String key) getAsInstant(String key, Instant defaultValue) getAsString(HeaderAttr attr) getAsString(HeaderAttr attr, String defaultValue) getAsString(String key) getAsString(String key, String defaultValue) inthashCode()static Headerof()static Headerstatic Headerof(ShardPosition shardPosition) static Headerof(ShardPosition shardPosition, com.google.common.collect.ImmutableMap<String, String> attributes) toString()
-
Method Details
-
of
-
of
-
of
public static Header of(ShardPosition shardPosition, com.google.common.collect.ImmutableMap<String, String> attributes) -
of
-
builder
-
copyOf
-
getShardPosition
-
getAll
-
containsKey
-
containsKey
-
get
-
get
-
get
-
get
-
getAsString
-
getAsString
-
getAsString
-
getAsString
-
getAsInstant
-
getAsInstant
-
getAsInstant
-
getAsInstant
-
equals
-
hashCode
public int hashCode() -
toString
-