public class IncomingRabbitMQMetadata extends Object
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getContentEncoding()
The content-encoding property is used as a modifier to the content-type.
|
Optional<String> |
getContentType()
The RFC-2046 MIME type for the message's application-data section (body).
|
Optional<String> |
getCorrelationId()
This is a client-specific id that can be used to mark or identify messages between clients.
|
Optional<ZonedDateTime> |
getCreationTime(ZoneId zoneId)
The absolute time when this message was created, expressed as a
ZonedDateTime
with respect to the supplied ZoneId . |
<T> Optional<T> |
getHeader(String header,
Class<T> type)
Retrieves the header value cast to the required type.
|
Map<String,Object> |
getHeaders()
The headers property is a key/value map that allows for arbitrary, user-defined keys and values.
|
Optional<String> |
getId()
The message-id, if set, uniquely identifies a message within the message system.
|
Optional<Integer> |
getPriority()
This priority field contains the relative message priority.
|
Optional<String> |
getReplyTo()
The address of the node to send replies to.
|
Optional<String> |
getUserId()
The identity of the user responsible for producing the message.
|
public <T> Optional<T> getHeader(String header, Class<T> type)
T
- the typeheader
- the name of the headertype
- the required typeIllegalArgumentException
- if the header value could not be cast as requiredpublic Map<String,Object> getHeaders()
String
, Long
, Boolean
and List
.
List values may contain a mixture of other values of any of the above types (including List).
Map
public Optional<String> getContentType()
If the payload is known to be truly opaque binary data, the content-type should be set to application/octet-stream.
Stored in the message properties.
Optional
containing the content-type, which may be empty if no content-type was receivedpublic Optional<String> getContentEncoding()
Stored in the message properties.
Optional
containing the content-encoding, which may be empty if no content-encoding was receivedpublic Optional<ZonedDateTime> getCreationTime(ZoneId zoneId)
ZonedDateTime
with respect to the supplied ZoneId
.
Stored in the message properties.
public Optional<String> getId()
Stored in the message properties.
Optional
containing the message-id, which may be empty if no message-id was receivedpublic Optional<String> getUserId()
Stored in the message properties.
Optional
containing the user-id, which may be empty if no user-id was receivedpublic Optional<Integer> getPriority()
Stored in the message properties.
Optional
containing the priority, which may be empty if no priority was receivedpublic Optional<String> getReplyTo()
Stored in the message properties.
Optional
containing the reply-to address, which may be empty if no reply-to was receivedCopyright © 2018–2021 SmallRye. All rights reserved.