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 boolean
hasResumables()
Whether there are resumable files to processFile[]
resumed()
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- Specified by:
resumeEach
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.camel.ResumableSet<File>
- Returns:
- true if there are resumable files or false otherwise
-
-