Pluggable shutdown strategy executed during shutdown of routes.
Shutting down routes in a reliable and graceful manner is not a trivial task. Therefore Camel provides a pluggable strategy allowing 3rd party to use their own strategy if needed.
The key problem is to stop the input consumers for the routes such that no new messages is coming into Camel. But at the same time still keep the routes running so the existing in flight exchanges can still be run to completion. On top of that there are some in memory components (such as SEDA) which may have pending messages on its in memory queue which we want to run to completion as well, otherwise they will get lost.
Camel provides a default strategy which supports all that that can be used as inspiration for your own strategy.
@version $Revision: 928357 $
@see org.apache.camel.spi.ShutdownAware