You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/05/01 04:55:00 UTC

[jira] [Resolved] (CAMEL-14984) Sqs2EndpointBuilder is not respecting delay - polling continuously

     [ https://issues.apache.org/jira/browse/CAMEL-14984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-14984.
---------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 3.3.0
>
>
> 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)