public class IncomingAmqpMetadata extends Object
Constructor and Description |
---|
IncomingAmqpMetadata(io.vertx.amqp.AmqpMessage message) |
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
The AMQP address of the message.
|
String |
getContentEncoding()
The content-encoding property is used as a modifier to the content-type.
|
String |
getContentType()
The RFC-2046 MIME type for the message's application-data section (body).
|
String |
getCorrelationId()
This is a client-specific id that can be used to mark or identify messages between clients.
|
long |
getCreationTime()
An absolute time when this message was created.
|
org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations |
getDeliveryAnnotations()
The delivery annotations.
|
int |
getDeliveryCount()
The number of unsuccessful previous attempts to deliver this message.
|
long |
getExpirationTime()
Deprecated.
Use
getExpiryTime() instead |
long |
getExpiryTime()
An absolute time when this message is considered to be expired.
|
org.apache.qpid.proton.amqp.messaging.Footer |
getFooter()
Transport footers for a message.
|
String |
getGroupId()
Identifies the group the message belongs to.
|
long |
getGroupSequence()
The relative position of this message within its group.
|
String |
getId()
The message-id, if set, uniquely identifies a message within the message system.
|
org.apache.qpid.proton.amqp.messaging.MessageAnnotations |
getMessageAnnotations()
The message annotations.
|
short |
getPriority()
This priority field contains the relative message priority.
|
io.vertx.core.json.JsonObject |
getProperties()
The application-properties section is a part of the bare message used for structured application data.
|
String |
getReplyTo()
The address of the node to send replies to.
|
String |
getReplyToGroupId()
This is a client-specific id that is used so that client can send replies to this message to a specific group.
|
String |
getSubject()
A common field for summary information about the message content and purpose.
|
long |
getTtl()
Duration in milliseconds for which the message is to be considered "live".
|
String |
getUserId()
The identity of the user responsible for producing the message.
|
boolean |
isDurable()
Whether the message is durable.
|
boolean |
isFirstAcquirer()
If this value is true, then this message has not been acquired by any other link.
|
public IncomingAmqpMetadata(io.vertx.amqp.AmqpMessage message)
public String getAddress()
The address is stored in the to
field which identifies the node that is the intended destination of the
message. On any given transfer this might not be the node at the receiving end of the link.
Stored in the message properties.
public io.vertx.core.json.JsonObject getProperties()
The keys of this map are restricted to be of type string and the values are restricted to be of simple types only, that is, excluding map, list, and array types.
public 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.
public String getContentEncoding()
Stored in the message properties.
public long getCreationTime()
Stored in the message properties.
public int getDeliveryCount()
Stored in the message header
public long getExpiryTime()
Stored in the message properties.
public String getGroupId()
Stored in the message properties.
public long getGroupSequence()
Stored in the message properties.
public String getId()
Stored in the message properties.
public String getUserId()
Stored in the message properties.
public boolean isDurable()
Durable messages must not be lost even if an intermediary is unexpectedly terminated and restarted. A target which is not capable of fulfilling this guarantee must not accept messages where the durable header is set to true: if the source allows the rejected outcome then the message should be rejected with the precondition-failed error, otherwise the link must be detached by the receiver with the same error.
Stored in the message header.
public boolean isFirstAcquirer()
Stored in the message header.
public short getPriority()
Stored in the message header.
public String getSubject()
Stored in the message properties.
public String getReplyTo()
Stored in the message properties.
public String getReplyToGroupId()
Stored in the message properties.
public String getCorrelationId()
Stored in the message properties.
public long getTtl()
Stored in the message header
@Deprecated public long getExpirationTime()
getExpiryTime()
insteadpublic org.apache.qpid.proton.amqp.messaging.DeliveryAnnotations getDeliveryAnnotations()
The delivery-annotations section is used for delivery-specific non-standard properties at the head of the message. Delivery annotations convey information from the sending peer to the receiving peer. If the recipient does not understand the annotation it cannot be acted upon and its effects (such as any implied propagation) cannot be acted upon. Annotations might be specific to one implementation, or common to multiple implementations. The capabilities negotiated on link attach and on the source and target should be used to establish which annotations a peer supports. A registry of defined annotations and their meanings is maintained.
The symbolic key "rejected" is reserved for the use of communicating error information regarding rejected messages. Any values associated with the "rejected" key must be of type error.
If the delivery-annotations section is omitted, it is equivalent to a delivery-annotations section containing an empty map of annotations.
public org.apache.qpid.proton.amqp.messaging.MessageAnnotations getMessageAnnotations()
The message-annotations section is used for properties of the message which are aimed at the infrastructure and should be propagated across every delivery step. Message annotations convey information about the message. Intermediaries must propagate the annotations unless the annotations are explicitly augmented or modified (e.g., by the use of the modified outcome).
The capabilities negotiated on link attach and on the source and target can be used to establish which annotations a peer understands; however, in a network of AMQP intermediaries it might not be possible to know if every intermediary will understand the annotation. Note that for some annotations it might not be necessary for the intermediary to understand their purpose, i.e., they could be used purely as an attribute which can be filtered on.
A registry of defined annotations and their meanings is maintained.
If the message-annotations section is omitted, it is equivalent to a message-annotations section containing an empty map of annotations.
public org.apache.qpid.proton.amqp.messaging.Footer getFooter()
Copyright © 2018–2021 SmallRye. All rights reserved.