diff --git a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java index e0f38ab5c0..13a7e966fd 100644 --- a/org.springframework.integration.file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java +++ b/org.springframework.integration.file/src/main/java/org/springframework/integration/file/FileReadingMessageSource.java @@ -27,7 +27,6 @@ import java.util.concurrent.PriorityBlockingQueue; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import org.springframework.core.io.Resource; import org.springframework.integration.core.Message; import org.springframework.integration.core.MessagingException; @@ -39,16 +38,19 @@ import org.springframework.util.Assert; /** * PollableSource that creates messages from a file system directory. To prevent * messages for certain files, you may supply a {@link FileListFilter}. By - * default, an {@link AcceptOnceFileListFilter} is used. It ensures files are picked - * up only once from the directory. - *
+ * default, an {@link AcceptOnceFileListFilter} is used. It ensures files are + * picked up only once from the directory. + *
* A common problem with reading files is that a file may be detected before it - * is ready. The default {@link AcceptOnceFileListFilter} does not prevent this. In - * most cases, this can be prevented if the file-writing process renames each + * is ready. The default {@link AcceptOnceFileListFilter} does not prevent this. + * In most cases, this can be prevented if the file-writing process renames each * file as soon as it is ready for reading. A pattern-matching filter that * accepts only files that are ready (e.g. based on a known suffix), composed - * with the default {@link AcceptOnceFileListFilter} would allow for this. - * See {@ link CompositeFileFilter} for a way to do this. + * with the default {@link AcceptOnceFileListFilter} would allow for this. See + * {@link CompositeFileFilter} for a way to do this. + * + * FileReadingMessageSource is fully thread-safe under concurrent receives and + * message delivery callbacks. * * @author Iwein Fuld */ @@ -58,11 +60,15 @@ public class FileReadingMessageSource implements MessageSourcereceive()
+ */
public void onSend(Message