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

[jira] [Resolved] (CAMEL-15613) Camel Timer does not honor fixedRate=false

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

Jan Bednar resolved CAMEL-15613.
--------------------------------
    Resolution: Not A Bug

Timer component is working correctly. You have used delay EIP, which is non blocking by default since Camel 3.
https://camel.apache.org/components/latest/eips/delay-eip.html
https://github.com/apache/camel/commit/d17a41fb6182e2991c31cb256bc093bace6b5e26

Just replace
{code:java}
.delay(60000)
{code}
with
{code:java}
.delay(60000).syncDelayed()
{code}
and you will see the timer is actually correctly blocked.


> Camel Timer does not honor fixedRate=false
> ------------------------------------------
>
>                 Key: CAMEL-15613
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15613
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.5.0
>            Reporter: Sreejesh
>            Priority: Minor
>         Attachments: code.zip
>
>
> Noticed a different behaviour of Camel timer with 3.5.0 when compared with Camel version 2.24.3. In 3.5.0. Camel timer fires events as if it is  fixedRate is true (even if I explicitly make it false in the Camel URL).
>  
> The same code behaves differently in Camel 2.24.3.
>  
> I am attaching sample code for 3.5.0 version.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)