Class FileResumeSet
- java.lang.Object
-
- org.apache.camel.component.file.consumer.FileResumeSet
-
public final class FileResumeSet extends Object
This contains the input/output file set for resume operations.
-
-
Constructor Summary
Constructors Constructor Description FileResumeSet(File[] inputFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasResumables()
Whether there are resumable files to processFile[]
resumedFiles()
Gets the files that should be resumedvoid
resumeEach(Predicate<File> resumableCheck)
Iterates over the set of input files checking if they should be resumed or not
-
-
-
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- Parameters:
resumableCheck
- a checker method that returns true if the file should be resumed or false otherwise
-
resumedFiles
public File[] resumedFiles()
Gets the files that should be resumed- Returns:
- an array with the files that should be resumed
-
hasResumables
public boolean hasResumables()
Whether there are resumable files to process- Returns:
- true if there are resumable files or false otherwise
-
-