Class: SubscriberPriority
Priority of a subscription relative to others in the same session. Lower numbers have higher priority. Range: 0-255. Values outside this range are a PROTOCOL_VIOLATION. Default (when omitted from SUBSCRIBE, PUBLISH_OK, or FETCH) is 128.
Implements
Constructors
Constructor
new SubscriberPriority(
priority):SubscriberPriority
Rounds priority and clamps it to 0-255.
Parameters
priority
number
Returns
SubscriberPriority
Properties
priority
readonlypriority:number
TYPE
readonlystaticTYPE:SubscriberPriority=MessageParameterType.SubscriberPriority
Methods
toKeyValuePair()
toKeyValuePair():
KeyValuePair
Returns
Implementation of
fromKeyValuePair()
staticfromKeyValuePair(pair):SubscriberPriority|undefined
Parameters
pair
Returns
SubscriberPriority | undefined