org.apache.activemq.util
Class MessageDestinationComparator

java.lang.Object
  extended by org.apache.activemq.util.MessageComparatorSupport
      extended by org.apache.activemq.util.MessageDestinationComparator
All Implemented Interfaces:
Serializable, Comparator

public class MessageDestinationComparator
extends MessageComparatorSupport

A comparator which works on SendCommand objects to compare the destinations

See Also:
Serialized Form

Constructor Summary
MessageDestinationComparator()
           
 
Method Summary
protected  int compareMessages(Message message1, Message message2)
           
protected  Comparable getComparable(Destination destination)
           
protected  Destination getDestination(Message message)
           
 
Methods inherited from class org.apache.activemq.util.MessageComparatorSupport
compare, compareComparators
 
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

MessageDestinationComparator

public MessageDestinationComparator()
Method Detail

compareMessages

protected int compareMessages(Message message1,
                              Message message2)
Specified by:
compareMessages in class MessageComparatorSupport

getDestination

protected Destination getDestination(Message message)

getComparable

protected Comparable getComparable(Destination destination)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.