public void updateLowestMessagePriority ( short messagePriority ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "updateLowestMessagePriority" , new Object [ ] { "" + messagePriority } ) ; // Only update if the message priority is lower than another message if ( messagePriority < this . lowestPriority ) { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Updating lowest priority" ) ; this . lowestPriority = messagePriority ; } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "updateLowestMessagePriority" ) ; }
This method is used to update the lowest message priority that has been sent on this transaction . The value passed in is stored if it is lower than a previous value . Otherwise it is ignored . The stored value is then used on the exchanges sent when we commit or rollback .