Brice created CAMEL-14984:
-----------------------------
Summary: Sqs2EndpointBuilder is not respecting delay - polling
continuously
Key: CAMEL-14984
URL: https://issues.apache.org/jira/browse/CAMEL-14984
Project: Camel
Issue Type: Bug
Components: camel-aws2
Affects Versions: 3.2.0
Environment: Spring Boot 2.2.6
org.apache.camel:camel-endpointdsl:3.2.0
org.apache.camel.springboot:camel-aws2-sqs-starter:3.2.0
Reporter: Brice
The `aws2Sqs`consumer is not respecting the delay value and continuously polls
every 500ms regardless of its setting in both the EndpointDSL and normal route
builder string.
Example:
{code:java}
// build.gradle
dependencies {
implementation 'org.apache.camel:camel-endpointdsl:3.2.0'
implementation 'org.apache.camel.springboot:camel-aws2-sqs-starter:3.2.0'
...
}
// EncodeQueueRoute.java
...
@Component
public class EncodeQueueRoute extends EndpointRouteBuilder {
@Override
public void configure() {
from(aws2Sqs("queueName")
.useFixedDelay(true)
.delay(5000)
).to(file("data/output"));
}
}
{code}
I have tried both the EndpointDSL as well as normal Route builder,
with useFixedDelay explicitly passed and without (it defaults to
true).
Original Mailing List Thread:
https://camel.465427.n5.nabble.com/Sqs2EndpointBuilder-is-not-respecting-delay-polling-continuously-td5865730.html
--
This message was sent by Atlassian Jira
(v8.3.4#803005)