Class ExpressionComparator

java.lang.Object
org.apache.camel.support.ExpressionComparator
All Implemented Interfaces:
Comparator<org.apache.camel.Exchange>

public class ExpressionComparator extends Object implements Comparator<org.apache.camel.Exchange>
An implementation of Comparator that takes an Expression which is evaluated on each exchange to be compared
  • Constructor Details

    • ExpressionComparator

      public ExpressionComparator(org.apache.camel.Expression expression)
  • Method Details

    • compare

      public int compare(org.apache.camel.Exchange e1, org.apache.camel.Exchange e2)
      Specified by:
      compare in interface Comparator<org.apache.camel.Exchange>