Class FileResumeSet
- java.lang.Object
-
- org.apache.camel.component.file.consumer.FileResumeSet
-
-
Constructor Summary
Constructors Constructor Description FileResumeSet(File[] inputFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasResumables()Whether there are resumable files to processFile[]resumed()Gets the files that should be resumedvoidresumeEach(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- Specified by:
resumeEachin interfaceorg.apache.camel.resume.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:
resumedin interfaceorg.apache.camel.resume.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:
hasResumablesin interfaceorg.apache.camel.resume.ResumableSet<File>- Returns:
- true if there are resumable files or false otherwise
-
-