@noinspection unchecked
@noinspection unchecked
@return a builder to create an {@link AmqpMessage}.
Creates a builder to create a new {@link AmqpMessage} copying the metadata from the passed message.
Creates a builder to create a new {@link AmqpMessage} copying the metadata from the passed (Proton) message.
@return whether or not the message is durable. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header">AMQP specification</a>
@return if {@code true}, then this message has not been acquired by any other link. If {@code false}, then this message MAY have previously been acquired by another link or links. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header">AMQP specification</a>
@return the relative message priority. Higher numbers indicate higher priority messages. Messages with higher priorities MAY be delivered before those with lower priorities. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header">AMQP specification</a>
@return the number of unsuccessful previous attempts to deliver this message. If this value is non-zero it can be taken as an indication that the delivery might be a duplicate. On first delivery, the value is zero. It is incremented upon an outcome being settled at the sender, according to rules defined for each outcome. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header">AMQP specification</a>
@return the duration in milliseconds for which the message is to be considered "live". @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties">AMQP specification</a>
@return the message id @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties">AMQP specification</a>
@return the message address, also named {@code to} field @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties">AMQP specification</a>
@return The address of the node to send replies to, if any. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties">AMQP specification</a>
@return The client-specific id that can be used to mark or identify messages between clients. @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties">AMQP specification</a>
@return whether the body is {@code null}. This method returns {@code true} is the message does not contain a body or if the message contain a {@code null} AMQP value as body.
@return the boolean value contained in the body. The value must be passed as AMQP value.
@return the byte value contained in the body. The value must be passed as AMQP value.
@return the short value contained in the body. The value must be passed as AMQP value.
@return the integer value contained in the body. The value must be passed as AMQP value.
@return the long value contained in the body. The value must be passed as AMQP value.
@return the float value contained in the body. The value must be passed as AMQP value.
@return the double value contained in the body. The value must be passed as AMQP value.
@return the character value contained in the body. The value must be passed as AMQP value.
@return the bytes contained in the body. The value must be passed as AMQP data.
@return the string value contained in the body. The value must be passed as AMQP value.
@return the symbol value contained in the body. The value must be passed as AMQP value.
@return the list of values contained in the body. The value must be passed as AMQP value.
@return the JSON array contained in the body. The value must be passed as AMQP data.
@return the message properties as JSON object.
When receiving a message, and when auto-acknowledgement is disabled, this method is used to acknowledge the incoming message. It marks the message as delivered with the {@code accepted} status.
When receiving a message, and when auto-acknowledgement is disabled, this method is used to acknowledge the incoming message as {@code rejected}.
When receiving a message, and when auto-acknowledgement is disabled, this method is used to acknowledge the incoming message as {@code released}.
When receiving a message, and when auto-acknowledgement is disabled, this method is used to acknowledge the incoming message as {@code modified}.