Sets the priority of a message.
Item |
Description |
Remarks |
---|---|---|
1 |
Message ID |
VARCHAR(128). You can obtain the message ID from ml_qa_createmessage or ml_qa_getmessage. |
2 |
Priority |
INTEGER |
The QAnywhere API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. Clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority.
You cannot alter this header after the message has been sent.
The following example sends a high priority message:
begin declare @msgid varchar(128); set @msgid = ml_qa_createmessage(); call ml_qa_setpriority( @msgid, 9 ); call ml_qa_settextcontent( @msgid, 'priority content' ); call ml_qa_putmessage( @msgid, 'clientid\queuename' ); commit; end