Class FileResumeSet

  • All Implemented Interfaces:
    org.apache.camel.ResumableSet<File>

    public final class FileResumeSet
    extends Object
    implements org.apache.camel.ResumableSet<File>
    This contains the input/output file set for resume operations.
    • Constructor Detail

      • FileResumeSet

        public FileResumeSet​(File[] inputFiles)
    • Method Detail

      • resumeEach

        public void resumeEach​(Predicate<File> resumableCheck)
        Iterates over the set of input files checking if they should be resumed or not
        Specified by:
        resumeEach in interface org.apache.camel.ResumableSet<File>
        Parameters:
        resumableCheck - a checker method that returns true if the file should be resumed or false otherwise
      • resumed

        public File[] resumed()
        Gets the files that should be resumed
        Specified by:
        resumed in interface org.apache.camel.ResumableSet<File>
        Returns:
        an array with the files that should be resumed
      • hasResumables

        public boolean hasResumables()
        Whether there are resumable files to process
        Specified by:
        hasResumables in interface org.apache.camel.ResumableSet<File>
        Returns:
        true if there are resumable files or false otherwise