camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-1483) Graceful shutdown
Date Sat, 03 Oct 2009 15:10:00 GMT


Claus Ibsen commented on CAMEL-1483:

We also have the inflight repository now that can inform how many messages are currently being

This allows us to peek this value and wait shutting down until this value reaches zero.

There should be some form of timeout etc. to prevent deadlocking by waiting for that inflight
to reach zero.

And Camel should offer a more range of shutdown operations
- shutdownNow
- shutdownGraceful
- shutdownGraceful(timeout)

> Graceful shutdown
> -----------------
>                 Key: CAMEL-1483
>                 URL:
>             Project: Apache Camel
>          Issue Type: New Feature
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Claus Ibsen
>             Fix For: 2.1.0
> Introduce a GracefulShutdownAware interface (in lack of better name) that components
can support.
> It allows the component to eg deny any new incoming messages.
> Can be used by JMS, File, Http, Mina etc. to better support graceful shutdown as they
will deny new messages.
> James have a good idea on this one. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message