首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache Camel sftp延迟查询参数似乎不起作用

Apache Camel sftp延迟查询参数似乎不起作用
EN

Stack Overflow用户
提问于 2020-10-11 18:25:20
回答 1查看 229关注 0票数 0

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

代码语言:javascript
复制
from("sftp://{{sftp.source-url}}?username={{sftp.username}}&password={{sftp.password}}
&delay=5000")
                .log(LoggingLevel.INFO, "here here");

从日志中,我可以看到“here”每隔15ish秒记录一次

代码语言:javascript
复制
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分钟,但代码记录的时间间隔仍为15ish秒

我做错了什么?

EN

回答 1

Stack Overflow用户

发布于 2020-10-12 18:16:54

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

代码语言:javascript
复制
<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> 

然后试试这个:

代码语言:javascript
复制
from("sftp://{{sftp.username}}@{{sftp.source-url}}?password={{sftp.password}}&amp;delay=5000")
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64302958

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档