You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Spring Integrations FileListFilters on the last modified attribute of a file are limited to the use case of discarding files that are too young.
Expected Behavior
Spring Integrations FileListFilters on the last modified attribute should be extended to the use case of discarding files that are too old.
Context
As stated by @artembilan in the stack overflow thread referenced below this feature may be implemented by adding to AbstractLastModifiedFileListFilter a new boolean property that can be used to negate the currently implemented filter predicate.
I decided to go with more granular way and introduced AbstractRecentFileListFilter.
It is similar to the LastModified one, but just does an opposite check.
So, we can combine two of them in our configuration to achieve a behavior like: accept only files which are in their "ripe" age.
Current Behavior
Currently, Spring Integrations FileListFilters on the last modified attribute of a file are limited to the use case of discarding files that are too young.
Expected Behavior
Spring Integrations FileListFilters on the last modified attribute should be extended to the use case of discarding files that are too old.
Context
As stated by @artembilan in the stack overflow thread referenced below this feature may be implemented by adding to
AbstractLastModifiedFileListFilter
a newboolean
property that can be used to negate the currently implemented filter predicate.This issue is related to this stack overflow question.
The text was updated successfully, but these errors were encountered: