setJMSPriority
public void setJMSPriority(int priority) throws JMSException;
Sets the priority for this message.
Providers set this field when a message is sent. This operation can be used to change the value of a message that has been received.
JMS defines a ten levels of priority with 0 as the lowest and 9 as the highest. In addition, clients must consider priorities 0-4 as gradations of normal priority, and priorities 5-9 as gradations of expedited priority.
- Parameters
- priority - the priority of this message
- Exceptions
- JMSException - if an internal error occurs.
uj26780_