IPWorks MQ 2020 Kotlin Edition

Questions / Feedback?

AMQPMessage Type

Represents an AMQP message.

Remarks

This type represents an AMQP message.

Fields

AbsoluteExpiryTime
Long

The absolute time at which this message should be considered expired.

This field specifies the absolute time at which this message should be considered expired. It may be -1 if this message does not have an absolute expiry time.

This field's value should be specified in milliseconds relative to the Unix epoch (January 1, 1970 00:00:00 UTC).

ContentEncoding
String?

The content encoding of this message's data.

This field specifies the content encoding of this message's data. It may be empty if this message does not have a content encoding set.

When constructing a message for sending, this field is ignored if ValueType is not set to mvtBinary (16).

ContentType
String?

The content type of this message's data.

This field specifies the content type of this message's data. It may be empty if this message does not have a content type set.

When constructing a message for sending, this field is ignored if ValueType is not set to mvtBinary (16).

CorrelationId
String?

The correlation Id of this message.

This field specifies the correlation Id of this message. It may be empty if this message does not have a correlation Id.

CreationTime
Long

The creation time of this message.

This field specifies the absolute creation time of this message. It may be -1 if this message does not have a creation time set.

This field's value should be specified in milliseconds relative to the Unix epoch (January 1, 1970 00:00:00 UTC).

DeliveryCount
Long

How many previous attempts there have been to deliver this message.

This field indicates how many (unsuccessful) previous attempts there have been to deliver this message.

Durable
Boolean

Whether this message is durable.

This field specifies whether this message is durable or not.

If a message is marked as durable, any intermediate nodes which cannot guarantee that the message won't be lost under any circumstances will not accept the message.

FirstAcquirer
Boolean

Whether this message may have been acquired by other links previously.

This field specifies whether this message might have previously been acquired by other links.

GroupId
String?

The Id of the group this message belongs to.

This field specifies the Id of the group that this message belongs to. It may be empty if this message does not belong to a group.

GroupSequence
Long

The position of this message within its group.

This field specifies the relative position of this message within its group. It may be -1 if this message does not belong to a group.

LinkName
String?

The name of the link this message is associated with.

This field holds the name of the link which this message is being sent/was received on.

MessageId
String?

The unique Id of this message.

This field holds the unique Id of this message. It may be empty if this message does not have a unique Id.

Priority
Int

The priority of this message.

This field holds the priority of this message; the default is 4 (as defined by the AMQP specification).

ReplyTo
String?

The address of the node to send replies to for this message.

This field specifies the address of the node to send replies to for this message. It may be empty if this message does not have a specific reply-to node address.

ReplyToGroupId
String?

The Id of the group to send replies to for this message.

This field specifies the Id of the group to send replies to for this message. It may be empty if there is not a specific reply-to group for this message.

Settled
Boolean

Whether this message is settled.

This field specifies whether this message is settled or not.

Note that, when constructing a message for sending, this field is ignored if the send settle mode of the link it is sent on is not Mixed (2).

Subject
String?

The subject of this message.

This field specifies the subject of this message. It may be empty if this message does not have a subject set.

To
String?

The address of the node which this message is intended for.

This field specifies the address of the node which this message is intended to be delivered to. It my be empty if this message is not intended for a specific destination node.

TTL
Long

The time-to-live value for this message.

This field specifies the time-to-live (TTL) value, in milliseconds, for this message. It may be -1 if this message does not have a TTL.

UserId
String?

The identity of the user responsible for producing this message.

This field specifies the identity of the user responsible for producing this message. It may be empty if no specific user was responsible for creating this message.

A message's user Id may be used for verification or authentication by intermediates and/or the final receiver.

Value
String?

This message's value.

This field specifies the value to send in this message. The ValueType field should be used to specify the data type of the value.

ValueType
AMQPValueTypes

This message's value data type.

This field specifies the data type of this message's Value.

The table below shows the possible value types, their descriptions, and how to format the data assigned to Value. All numeric value types should use their standard string formatting (except for the mvtDecimal (12) type, which should be specified as hex-encoded bytes).

Type Description Value Format
mvtNull (0 - default) Null N/A (Value is ignored)
mvtBoolean (1) Boolean "True" or "False"
mvtUbyte (2) Unsigned byte 0 to 255
mvtUshort (3) Unsigned short 0 to 65535
mvtUint (4) Unsigned integer 0 to 4294967295
mvtUlong (5) Unsigned long 0 to 18446744073709551615
mvtByte (6) Byte -128 to 127
mvtShort (7) Short -32768 to 32767
mvtInt (8) Integer -2147483648 to 2147483647
mvtLong (9) Long -9223372036854775808 to 9223372036854775807
mvtFloat (10) Float IEEE 754 32-bit floating point number
mvtDouble (11) Double IEEE 754 64-bit floating point number
mvtDecimal (12) Decimal Hex-encoded byte string
mvtChar (13) Char Single character
mvtTimestamp (14) Timestamp Number of milliseconds since the Unix epoch (January 1, 1970 00:00:00 UTC).
mvtUuid (15) UUID Hex-encoded UUID in the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (hyphens optional, case-insensitive)
mvtBinary (16) Binary data Hex-encoded byte string
mvtString (17) String String
mvtSymbol (18) Symbolic value ASCII string
mvtJson (19) Composite data Composite data JSON structured according to the schema shown in the SendMessage method's documentation

Constructors

public constructor()



Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks MQ 2020 Kotlin Edition - Version 20.0 [Build 7941]