Collapse All Expand All

.NET Framework Class Library
MessageProducer Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Gets and Sets the priority of the message producer.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public int Priority { get; set; }

    Public Property Priority As Integer

    public:
    property int Priority {
    	int get ();
    	void set (int value);
    }

# Remarks

Priority affects the order in which the server delivers messages to consumers (higher values first).

The JMS specification defines ten levels of priority value, from zero (lowest priority) to 9 (highest priority). The specification suggests that clients consider 0–4 as gradations of normal priority, and priorities 5–9 as gradations of expedited priority.

A client can use this property to define a default priority for messages that this producer sends. Individual sending calls can override this default value.

# See Also

MessageProducer Class
TIBCO.EMS Namespace