Interface ReversibleFileListFilter<F>

All Superinterfaces:
FileListFilter<F>
All Known Implementing Classes:
AbstractPersistentAcceptOnceFileListFilter, AcceptOnceFileListFilter, ChainFileListFilter, CompositeFileListFilter, FileSystemPersistentAcceptOnceFileListFilter

public interface ReversibleFileListFilter<F>
extends FileListFilter<F>
A FileListFilter that allows the caller to reverse (roll back) state changes.
Since:
4.0.4
  • Method Summary

    Modifier and Type Method Description
    void rollback​(F file, java.util.List<F> files)
    Indicate that not all files previously passed by this filter (in FileListFilter.filterFiles(Object[]) have been processed; the file must be in the list of files; it, and all files after it, will be considered to have not been processed and will be considered next time.

    Methods inherited from interface org.springframework.integration.file.filters.FileListFilter

    accept, filterFiles, supportsSingleFileFiltering
  • Method Details

    • rollback

      void rollback​(F file, java.util.List<F> files)
      Indicate that not all files previously passed by this filter (in FileListFilter.filterFiles(Object[]) have been processed; the file must be in the list of files; it, and all files after it, will be considered to have not been processed and will be considered next time.
      Parameters:
      file - the file which failed.
      files - the list of files that were returned by FileListFilter.filterFiles(Object[]).