Interface FileConsumerResumeStrategy
-
- All Superinterfaces:
org.apache.camel.ResumeStrategy<FileResumeSet>
public interface FileConsumerResumeStrategy extends org.apache.camel.ResumeStrategy<FileResumeSet>
Defines resume strategy for consumers of the file component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
lastOffset(File file)
Returns the last offset read for the given file.void
resume(FileResumeSet resumeInfo)
Perform the resume operation.
-
-
-
Method Detail
-
lastOffset
long lastOffset(File file)
Returns the last offset read for the given file.- Parameters:
file
- the file to check for the last offset- Returns:
- The last offset read or 0 (zero) if none has been read.
-
resume
void resume(FileResumeSet resumeInfo)
Perform the resume operation. This runs in the scope of the FileConsumer instance thread.- Specified by:
resume
in interfaceorg.apache.camel.ResumeStrategy<FileResumeSet>
- Parameters:
resumeInfo
- resume information
-
-