Skip to main content

%External.Messaging.RabbitMQMessage

class %External.Messaging.RabbitMQMessage extends %External.Messaging.Message

RabbitMQ message content and properties

Property Inventory

Method Inventory

Properties

property appId as %String (MAXLEN = 1000);
Message app Id
Property methods: appIdDisplayToLogical(), appIdGet(), appIdIsValid(), appIdLogicalToDisplay(), appIdLogicalToOdbc(), appIdNormalize(), appIdSet()
property clusterId as %String (MAXLEN = 1000);
Cluster Id
Property methods: clusterIdDisplayToLogical(), clusterIdGet(), clusterIdIsValid(), clusterIdLogicalToDisplay(), clusterIdLogicalToOdbc(), clusterIdNormalize(), clusterIdSet()
property contentEncoding as %String (MAXLEN = 100);
Message content encoding Only "UTF-8" is supported
Property methods: contentEncodingDisplayToLogical(), contentEncodingGet(), contentEncodingIsValid(), contentEncodingLogicalToDisplay(), contentEncodingLogicalToOdbc(), contentEncodingNormalize(), contentEncodingSet()
property contentType as %String (MAXLEN = 100);
Message content type
Property methods: contentTypeDisplayToLogical(), contentTypeGet(), contentTypeIsValid(), contentTypeLogicalToDisplay(), contentTypeLogicalToOdbc(), contentTypeNormalize(), contentTypeSet()
property correlationId as %String (MAXLEN = 1000);
Message correlation Id
Property methods: correlationIdDisplayToLogical(), correlationIdGet(), correlationIdIsValid(), correlationIdLogicalToDisplay(), correlationIdLogicalToOdbc(), correlationIdNormalize(), correlationIdSet()
property deliveryMode as %Integer (MAXVAL = 2, MINVAL = 1);
2 indicates persistent, and 1 indicates transient
Property methods: deliveryModeDisplayToLogical(), deliveryModeGet(), deliveryModeIsValid(), deliveryModeLogicalToDisplay(), deliveryModeNormalize(), deliveryModeSet(), deliveryModeXSDToLogical()
property encodedContent as %Stream.GlobalBinary (%JSONINCLUDE = "NONE");
The content of the message, stored in a binary stream. Content should be encoded in the preferred scheme before writing to the stream, and decoded after reading if necessary.

For example, to encode using UTF-8, then call $ZCONVERT(text, "O", "UTF8") and write the result to this stream.
Property methods: encodedContentDelete(), encodedContentGet(), encodedContentGetObject(), encodedContentGetObjectId(), encodedContentGetSwizzled(), encodedContentIsValid(), encodedContentNewObject(), encodedContentOid(), encodedContentOpen(), encodedContentSet(), encodedContentSetObject(), encodedContentSetObjectId(), encodedContentUnSwizzle()
property exchange as %String (MAXLEN = 100);
The exchange to which this message should be published
Property methods: exchangeDisplayToLogical(), exchangeGet(), exchangeIsValid(), exchangeLogicalToDisplay(), exchangeLogicalToOdbc(), exchangeNormalize(), exchangeSet()
property expiration as %String (MAXLEN = 100);
Message expriation
Property methods: expirationDisplayToLogical(), expirationGet(), expirationIsValid(), expirationLogicalToDisplay(), expirationLogicalToOdbc(), expirationNormalize(), expirationSet()
property headers as array of %String);
This will be converted to a map from String to Object in Java, and attached to the message as the "headers" property
Property methods: headersBuildValueArray(), headersCollectionToDisplay(), headersCollectionToOdbc(), headersDisplayToCollection(), headersDisplayToLogical(), headersGet(), headersGetObject(), headersGetObjectId(), headersGetSwizzled(), headersIsValid(), headersLogicalToDisplay(), headersLogicalToOdbc(), headersNormalize(), headersOdbcToCollection(), headersSet(), headersSetObject(), headersSetObjectId()
property messageId as %String (MAXLEN = 1000);
Message Id
Property methods: messageIdDisplayToLogical(), messageIdGet(), messageIdIsValid(), messageIdLogicalToDisplay(), messageIdLogicalToOdbc(), messageIdNormalize(), messageIdSet()
property priority as %Integer;
Message priority
Property methods: priorityDisplayToLogical(), priorityGet(), priorityIsValid(), priorityLogicalToDisplay(), priorityNormalize(), prioritySet(), priorityXSDToLogical()
property replyTo as %String (MAXLEN = 100);
Message reply to
Property methods: replyToDisplayToLogical(), replyToGet(), replyToIsValid(), replyToLogicalToDisplay(), replyToLogicalToOdbc(), replyToNormalize(), replyToSet()
property routingKey as %String (MAXLEN = 100);
The routing key to publish with this message
Property methods: routingKeyDisplayToLogical(), routingKeyGet(), routingKeyIsValid(), routingKeyLogicalToDisplay(), routingKeyLogicalToOdbc(), routingKeyNormalize(), routingKeySet()
property timestamp as %TimeStamp;
Message timestamp
Property methods: timestampDisplayToLogical(), timestampGet(), timestampIsValid(), timestampLogicalToDisplay(), timestampLogicalToXSD(), timestampNormalize(), timestampOdbcToLogical(), timestampSet(), timestampXSDToLogical()
property type as %String (MAXLEN = 100);
Message type
Property methods: typeDisplayToLogical(), typeGet(), typeIsValid(), typeLogicalToDisplay(), typeLogicalToOdbc(), typeNormalize(), typeSet()
property userId as %String (MAXLEN = 1000);
Message user Id
Property methods: userIdDisplayToLogical(), userIdGet(), userIdIsValid(), userIdLogicalToDisplay(), userIdLogicalToOdbc(), userIdNormalize(), userIdSet()

Methods

method SetContent(content As %Binary)
Set binary content
method SetEncodedContent(content As %String)
Encode string content as UTF-8

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab