Java Apache Camel sftp延迟查询参数不为';好像不行

Java Apache Camel sftp延迟查询参数不为';好像不行,java,apache-camel,Java,Apache Camel,这是我的路由配置方法中的代码 from("sftp://{{sftp.source-url}}?username={{sftp.username}}&password={{sftp.password}} &delay=5000") .log(LoggingLevel.INFO, "here here"); 从日志中,我可以看到“here-here”每15秒被记录一次 2020-10-11 12:18:21,

这是我的路由配置方法中的代码

from("sftp://{{sftp.source-url}}?username={{sftp.username}}&password={{sftp.password}}
&delay=5000")
                .log(LoggingLevel.INFO, "here here");
从日志中,我可以看到“here-here”每15秒被记录一次

2020-10-11 12:18:21,512 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:38,016 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:57,219 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:19:16,244 INFO  [route1] (Camel (camel-1) thread #0 - here here
我尝试将延迟设置为1分钟,但代码以15秒的相同间隔记录

2020-10-11 12:18:21,512 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:38,016 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:57,219 INFO  [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:19:16,244 INFO  [route1] (Camel (camel-1) thread #0 - here here

我做错了什么?

在pom.xml中添加以下依赖项:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-ftp</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency> 

无法工作,引发错误:
无法在终结点上设置1个参数。如果参数拼写正确并且是端点的属性,请检查uri。未知参数=[{amp;delay=5000}]
删除“amp;”并只放&i意思是&delay=5000这是我最初尝试的,请参见上面第2行的原始示例:
&密码={sftp.password}}&延迟=5000“..
测试开始时文件夹中有多少个文件?工作正常,只有当有文件要下载时才会显示日志。您可以启用调试/跟踪日志记录,并查看ftp使用者每5小时/秒运行一次或延迟是多少。同时告诉我们您使用的是什么版本的Camel?像往常一样尝试最新的补丁发布/最新版本等@ClausIbsen谢谢你的回复总是有一个文件要下载,这个sftp有很多文件(至少50个),并且不断更新。我希望它检查文件并每1小时下载一次,例如我正在使用camel quarkus 1.0.0