public class SequenceNumberComparator
extends java.lang.Object
implements java.util.Comparator<org.springframework.messaging.Message<?>>
Constructor and Description |
---|
SequenceNumberComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.springframework.messaging.Message<?> o1,
org.springframework.messaging.Message<?> o2)
If both messages have a sequence number then compare that, otherwise if one has a sequence number and the other
doesn't then the numbered message comes first, or finally of neither has a sequence number then they are equal in
rank.
|
public int compare(org.springframework.messaging.Message<?> o1, org.springframework.messaging.Message<?> o2)
compare
in interface java.util.Comparator<org.springframework.messaging.Message<?>>