INT-603: added custom comparator to resequencer

This commit is contained in:
David Syer
2010-05-06 15:37:18 +00:00
parent 37ac39b19c
commit 06129ede7e
10 changed files with 616 additions and 339 deletions

View File

@@ -19,7 +19,7 @@ package org.springframework.integration.file;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.aggregator.Resequencer;
import org.springframework.integration.aggregator.ResequencingMessageGroupProcessor;
import org.springframework.integration.core.Message;
import org.springframework.integration.core.MessagingException;
import org.springframework.integration.file.locking.FileLocker;
@@ -43,7 +43,7 @@ import java.util.concurrent.PriorityBlockingQueue;
* this. See {@link org.springframework.integration.file.CompositeFileListFilter} for a way to do this.
* <p/>
* A {@link Comparator} can be used to ensure internal ordering of the Files in a {@link PriorityBlockingQueue}. This
* does not provide the same guarantees as a {@link Resequencer}, but in cases where writing files and failure
* does not provide the same guarantees as a {@link ResequencingMessageGroupProcessor}, but in cases where writing files and failure
* downstream are rare it might be sufficient.
* <p/>
* FileReadingMessageSource is fully thread-safe under concurrent <code>receive()</code> invocations and message