Hi Kasim,
you need to add fixedRate=true to timer parameters, see example at:

http://camel.apache.org/timer.html#Timer-Sample

zoran

On Wed, Nov 2, 2016 at 6:28 AM, Kasim Sert (Ibtech-Software
Infrastructure) <kasim.s...@ibtech.com.tr> wrote:
> Hi,
>
> Although timer period is 10 seconds , when i check the logs I can see this 
> polling occurs every 1 minute. I changed the polling consumer timeout but 
> same result.
> Why is this behaviour ?
>
> Note : Using camel 2.18.0 with Spring Boot.
>
>
>             from("timer://mytimer?period=10000")
>                   .bean(MyBean.class)
>                   .pollEnrich("imaps://"+host+":993 ",1000)
>                   .log("finish");
>
> Log:
>
> 2016-11-02 07:23:05.375  INFO 22784 --- [timer://mytimer] route1
> 2016-11-02 07:24:05.376  INFO 22784 --- [timer://mytimer] route1
> 2016-11-02 07:25:05.376  INFO 22784 --- [timer://mytimer] route1


-- 
Zoran Regvart
zregv...@redhat.com

Reply via email to