Re: How to block on direct route

2020-12-29 Thread Claus Ibsen
Hi That is not the goal of direct component. If you want single threaded / sequential processing then use seda, where there is 1 consumer by default. On Mon, Dec 28, 2020 at 3:00 PM Dennis Holunder wrote: > > Hello, > > What is the correct way to block on a "direct" route until completion? > In

How to block on direct route

2020-12-28 Thread Dennis Holunder
Hello, What is the correct way to block on a "direct" route until completion? In the route below I must ensure only one instance of "direct:process" route running. In other words, "direct:process" must not run in parallel, because of some state from("timer://first?period=1000")