I am developing an spring-boot application to download files from sftp using camel route. Here is my code
from("sftp://username@host/folder")
.convertBodyTo(File.class)
.process("processor")
.routeId(routeId);
I want to shutdown this route after downloading all files from the given sftp folder. Can someone please help me on this?