Interface ReversibleFileListFilter<F>

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

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

    • rollback

      void rollback​(F file, 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[]).