This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions pageOpens in a new window (login required).

Caché & Ensemble 2018.1.5Opens in a new window > Class Reference > %SYS namespace > %Net.MQSend

%Net.MQSend

class %Net.MQSend extends %Net.abstractMQ

The MQSend class is used to put messages on a queue.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property GeneratedMessageId as %String;
Generated message id
Property methods: GeneratedMessageIdDisplayToLogical(), GeneratedMessageIdGet(), GeneratedMessageIdIsValid(), GeneratedMessageIdLogicalToDisplay(), GeneratedMessageIdLogicalToOdbc(), GeneratedMessageIdNormalize(), GeneratedMessageIdSet()

Methods (Including Private)

method %Put(Msg As %Library.String) as %Boolean
Use the %Put method to write a message to the queue specified in the %Init method.  The %Put method takes one argument, the message.  The message can be up to 32K bytes long.

%Put returns 0 if the call failed, else 1.

method %PutStream(stream As %Stream) as %Boolean
Identical to %Put except the queue message is input from a file character stream object which has been created by the caller.

Data is read from the start to the end of the file, and the entire stream put on the queue as a single message.

method %SetApplIdentityData(Value As %Library.String) as %Boolean
Sets the Application Identity for the next message to be sent. 
method %SetCorId(Value As %Library.String) as %Boolean
Sets the Correlation Id for the next message to be sent. 
method %SetMsgId(Value As %Library.String) as %Boolean
The %SetMsgId method sets the Message Id for the next message to be sent. 
method %SetPutApplType(Value As %Library.String) as %Boolean
Sets the Put Application Type for the next message to be sent. 
method %SetReplyQMgrName(Value As %Library.String) as %Boolean
Sets the Reply Queue Manager Name for the next message to be sent. 
method %SetReplyQName(Value As %Library.String) as %Boolean
Sets the Reply Queue Name for the next message to be sent. 

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

Subclasses

FeedbackOpens in a new window