Interface ReversibleFileListFilter<F>

Type Parameters:
F - The type that will be filtered.
All Superinterfaces:
All Known Implementing Classes:
AbstractPersistentAcceptOnceFileListFilter, AcceptOnceFileListFilter, ChainFileListFilter, CompositeFileListFilter, FileSystemPersistentAcceptOnceFileListFilter, FtpPersistentAcceptOnceFileListFilter, SftpPersistentAcceptOnceFileListFilter, SmbPersistentAcceptOnceFileListFilter

public interface ReversibleFileListFilter<F> extends FileListFilter<F>
A FileListFilter that allows the caller to reverse (roll back) state changes.
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.
      file - the file which failed.
      files - the list of files that were returned by FileListFilter.filterFiles(Object[]).