copyright The Portico Project 2008.

org.portico.lrc
Class LRCQueue.Sorter

java.lang.Object
  extended by 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.


Constructor Summary
private LRCQueue.Sorter()
           
 
Method Summary
 int compare(FED_CallbackMessage o1, FED_CallbackMessage o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LRCQueue.Sorter

private LRCQueue.Sorter()
Method Detail

compare

public int compare(FED_CallbackMessage o1,
                   FED_CallbackMessage o2)
Specified by:
compare in interface Comparator<FED_CallbackMessage>

copyright The Portico Project 2008.