org.springframework.integration.aggregator
Class MessageSequenceComparator

java.lang.Object
  extended by org.springframework.integration.aggregator.MessageSequenceComparator
All Implemented Interfaces:
java.util.Comparator<Message<?>>

public class MessageSequenceComparator
extends java.lang.Object
implements java.util.Comparator<Message<?>>

A Comparator implementation based on the 'sequence number' property of a Message's header.


Constructor Summary
MessageSequenceComparator()
           
 
Method Summary
 int compare(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

MessageSequenceComparator

public MessageSequenceComparator()
Method Detail

compare

public int compare(Message<?> message1,
                   Message<?> message2)
Specified by:
compare in interface java.util.Comparator<Message<?>>