Gets the message priority level.
The JMS API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. In addition, clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority.
The JMS API does not require that a provider strictly implement priority ordering of messages; however, it should do its best to deliver expedited messages ahead of normal messages.
Sets the priority level for this message.
JMS providers set this field when a message is sent. This method can be used to change the value for a message that has been received.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Property JMSPriority As Integer Get Set |
| C# |
|---|
int JMSPriority { get; set; } |
| Visual C++ |
|---|
property int JMSPriority { int get (); void set (int value); } |
Return Value
the default message priority
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to get the message priority due to some internal error. |
| Kaazing.JMS..::..JMSException | if the JMS provider fails to set the message priority due to some internal error. |