Patent ID: 8023408

Claim:
A method comprising: determining a message type of a message placed in a first message queue of a plurality of message queues; determining a first rule of a plurality of rules based, at least in part, on the message type and the first message queue, wherein the plurality of rules define conditions when at least one of message priority and message sequence number change for various message types and for the plurality of message queues; extracting content of the message based, at least in part, on a message structure definition, which is associated with the message type, and in accordance with the first rule of the plurality of rules, the first rule defined for the first message queue and the message type; evaluating a condition defined by the first rule to determine that the content fulfills the condition; calculating at least one of a new priority level and a new message sequence number for the message in accordance with a task assigned to the condition, wherein the task indicates how to calculate the new message sequence number or the new priority level; and communicating at least one of the new priority level and the new message sequence number for the message to a manager of the first message queue.