* @param comparator a sequence element comparator for exchanges.
*/
public StreamResequencer(CamelContext camelContext, Processor processor, SequenceElementComparator<Exchange> comparator) {
ObjectHelper.notNull(camelContext, "CamelContext");
this.camelContext = camelContext;
this.exceptionHandler = new LoggingExceptionHandler(getClass());
this.engine = new ResequencerEngine<Exchange>(comparator);
this.engine.setSequenceSender(this);
this.processor = processor;
}