org.apache.activemq.util
Class MessageComparatorSupport

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

public abstract class MessageComparatorSupport
extends Object
implements Comparator, Serializable

A base class for comparators which works on JMS Message objects

See Also:
Serialized Form

Constructor Summary
MessageComparatorSupport()
           
 
Method Summary
 int compare(Object object1, Object object2)
           
protected  int compareComparators(Comparable comparable, Comparable comparable2)
           
protected abstract  int compareMessages(Message message1, Message message2)
           
 
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

MessageComparatorSupport

public MessageComparatorSupport()
Method Detail

compare

public int compare(Object object1,
                   Object object2)
Specified by:
compare in interface Comparator

compareMessages

protected abstract int compareMessages(Message message1,
                                       Message message2)

compareComparators

protected int compareComparators(Comparable comparable,
                                 Comparable comparable2)


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