You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Martin Lichtin <li...@yahoo.com.INVALID> on 2016/07/14 10:01:48 UTC
How to concurrently shutdown routes
Is there a way to shutdown some routes in a context concurrently?
The default shutdown strategy seems to handle one route after the other.
To speed things up, I'm looking for a way to shutdown a set of routes at once.
Re: How to concurrently shutdown routes
Posted by Martin Lichtin <li...@yahoo.com>.
One problem with writing a custom shutdown strategy is that in
DefaultCamelContext,
the "stopRoute" and "shutdownRoute" methods are synchronized.
Or how else could I circumvent this 'serialization'?
Claus Ibsen-2 wrote
> Hi
>
> No the default shutdown is as-is. You would need to build your custom
> shutdown, and that can be a bit more complex if some routes have inter
> related dependencies, so you cannot shutdown X before Y etc.
>
> On Thu, Jul 14, 2016 at 12:01 PM, Martin Lichtin
> <
> lichtin@.com
> > wrote:
>> Is there a way to shutdown some routes in a context concurrently?
>> The default shutdown strategy seems to handle one route after the other.
>> To speed things up, I'm looking for a way to shutdown a set of routes at
>> once.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-concurrently-shutdown-routes-tp5785106p5785302.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to concurrently shutdown routes
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
No the default shutdown is as-is. You would need to build your custom
shutdown, and that can be a bit more complex if some routes have inter
related dependencies, so you cannot shutdown X before Y etc.
On Thu, Jul 14, 2016 at 12:01 PM, Martin Lichtin
<li...@yahoo.com.invalid> wrote:
> Is there a way to shutdown some routes in a context concurrently?
> The default shutdown strategy seems to handle one route after the other.
> To speed things up, I'm looking for a way to shutdown a set of routes at once.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2