I have dsl route:
from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true&readLock=changed&delay=%s",
systemSettingsService.getSystemSettings().getSftpUserName(),
systemSettingsService.getSystemSettings().getSftpHost(),
systemSettingsService.getSystemSettings().getSftpPort(),
systemSettingsService.getSystemSettings().getSftpSourcePathDestWorking(),
systemSettingsService.getSystemSettings().getSftpPassword(),
systemSettingsService.getSystemSettings().getSftpPollPeriod())).streamCaching()
.process(...
I want to limit file size for consuming. For example I want to ignore files with size more than 100Mb. Optionally I want to have callback in case if camel met file more than 100mb
I have read:
http://camel.apache.org/ftp2.html
But I could not find anything relevant