|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.file.filters.AbstractFileListFilter<F> org.springframework.integration.file.filters.AcceptOnceFileListFilter<F>
public class AcceptOnceFileListFilter<F>
FileListFilter
that passes files only one time. This can
conveniently be used to prevent duplication of files, as is done in
FileReadingMessageSource
.
Constructor Summary | |
---|---|
AcceptOnceFileListFilter()
Creates an AcceptOnceFileListFilter based on an unbounded queue. |
|
AcceptOnceFileListFilter(int maxCapacity)
Creates an AcceptOnceFileListFilter that is based on a bounded queue. |
Method Summary | |
---|---|
boolean |
accept(F file)
Subclasses must implement this method. |
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter |
---|
filterFiles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AcceptOnceFileListFilter(int maxCapacity)
AbstractFileListFilter.filterFiles(Object[])
maxCapacity
- the maximum number of Files to maintain in the 'seen' queue.public AcceptOnceFileListFilter()
Method Detail |
---|
public boolean accept(F file)
AbstractFileListFilter
accept
in class AbstractFileListFilter<F>
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |