Currently, priority comparison is integrated with FifoComparator. There should be a separate comparator defined for priority comparison so that down the line if any new ordering policy wants to integrate priority, they can use compound comparator where priority will be high preference.
The following changes are expected to be done as part of this JIRA
- Pull out priority comparison from FifoComparator
- Define new priority comparator
- Use compound comparator for FifoOrderingPolicy. Oder of preference is Priority,FIFO