Thank you! -----Ursprüngliche Nachricht----- Von: Claus Ibsen <claus.ib...@gmail.com> Gesendet: Freitag, 5. August 2022 10:48 An: users@camel.apache.org Betreff: Re: Timer fixedRate does not work
You need to force timer to be synchronous mode with synchronous=true then it will automatic block if something runs async in the route. On Fri, Aug 5, 2022 at 10:45 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > delay is async, it's not blocking. > > > On Fri, Aug 5, 2022 at 10:42 AM Simon Martinelli <si...@martinelli.ch> > wrote: > >> Hi again, >> >> I tried this: >> >> from("timer://atimer?fixedRate=true&period=1000") >> .routeId("atimer") >> .log("Before") >> .delay(5000) >> .log("After"); >> >> No matter if I use fixedRate= true or false the output is in both >> cases the same and there are multiple route instances running. >> >> What's wrong? >> >> Thanks, >> Simmon >> > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2