org.portico.lrc
Class LRCQueue.Sorter
java.lang.Object
org.portico.lrc.LRCQueue.Sorter
- All Implemented Interfaces:
- Comparator<FED_CallbackMessage>
- Enclosing class:
- LRCQueue
private class LRCQueue.Sorter
- extends Object
- implements Comparator<FED_CallbackMessage>
Comparator used for sorting TSO callback messages such that the callback queue remains
ordered. If the TSO message is a time advance grant (responds true
to the
FED_CallbackMessage.isAdvanceGrant()
), it is considered LESS than any other
message with the SAME timestamp. This way, it forces it to the bottom of the queue for
that timestamp.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LRCQueue.Sorter
private LRCQueue.Sorter()
compare
public int compare(FED_CallbackMessage o1,
FED_CallbackMessage o2)
- Specified by:
compare
in interface Comparator<FED_CallbackMessage>