Class AcceptOnceFileListFilter<F>

java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AcceptOnceFileListFilter<F>
All Implemented Interfaces:
FileListFilter<F>, ResettableFileListFilter<F>, ReversibleFileListFilter<F>

public class AcceptOnceFileListFilter<F>
extends AbstractFileListFilter<F>
implements ReversibleFileListFilter<F>, ResettableFileListFilter<F>
FileListFilter that passes files only one time. This can conveniently be used to prevent duplication of files, as is done in FileReadingMessageSource.

This implementation is thread safe.

Author:
Iwein Fuld, Josh Long, Gary Russell, Artem Bilan