org.apache.servicemix.jbi.messaging
Class MessageExchangeImpl.AgeComparator
java.lang.Object
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.AgeComparator
- All Implemented Interfaces:
- Comparator<MessageExchangeImpl>
- Enclosing class:
- MessageExchangeImpl
public static class MessageExchangeImpl.AgeComparator
- extends Object
- implements Comparator<MessageExchangeImpl>
Comparator that can be used to sort exchanges according to their "age" in
their processing: i.e.: a newly created exchange will be more than a DONE
exchange ... If the arguments are not instances of MessageExchangeImpl,
returns 0.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageExchangeImpl.AgeComparator
public MessageExchangeImpl.AgeComparator()
compare
public int compare(MessageExchangeImpl m0,
MessageExchangeImpl m1)
- Specified by:
compare in interface Comparator<MessageExchangeImpl>
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.