Spring Integration

org.springframework.integration.aggregator
Class MessageSequenceComparator

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

public class MessageSequenceComparator
extends Object
implements Comparator<Message<?>>

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

Author:
Mark Fisher

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 Comparator<Message<?>>

Spring Integration

Copyright © 2010. All Rights Reserved.