|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.file.entries.AbstractEntryListFilter<T> org.springframework.integration.file.entries.AcceptOnceEntryFileListFilter<T>
public class AcceptOnceEntryFileListFilter<T>
EntryListFilter
that passes files only one time. This can
conveniently be used to prevent duplication of files, as is done in
FileReadingMessageSource
.
Constructor Summary | |
---|---|
AcceptOnceEntryFileListFilter()
Creates an AcceptOnceFileFilter based on an unbounded queue. |
|
AcceptOnceEntryFileListFilter(int maxCapacity)
Creates an AcceptOnceEntryFileListFilter that is based on a bounded queue. |
Method Summary | |
---|---|
boolean |
accept(T pathname)
|
Methods inherited from class org.springframework.integration.file.entries.AbstractEntryListFilter |
---|
afterPropertiesSet, filterEntries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AcceptOnceEntryFileListFilter(int maxCapacity)
AcceptOnceEntryFileListFilter
that is based on a bounded queue. If the
queue overflows, files that fall out will be passed through this filter
again if passed to the AbstractEntryListFilter.filterEntries(Object[])
method.
maxCapacity
- the maximum number of Files to maintain in the 'seen'
queue.public AcceptOnceEntryFileListFilter()
Method Detail |
---|
public boolean accept(T pathname)
accept
in class AbstractEntryListFilter<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |