set_priority


Description:

[ Version ( since = "2.44" ) ]
public void set_priority (MessagePriority priority)

Sets the priority of a message.

Note that this won't have any effect unless used before the message is added to the session's message processing queue.

The message will be placed just before any other previously added message with lower priority (messages with the same priority are processed on a FIFO basis).

Setting priorities does not currently work with SessionSync (or with synchronous messages on a plain Session) because in the synchronous/blocking case, priority ends up being determined semi-randomly by thread scheduling.

Parameters:

this

a Message

priority

the MessagePriority