Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can configure the timeout, and whether it should shutdown now remainder remaining routes when the timeout occurred or ignore. See the setters on the class.

...

Notice how it waits while there are inflight exchanges still be being processed before it can shutdown.

...

You can control two areas that influence graceful shutdown in the Camel routing:

  • ShutdownRoute
  • ShutdownRunningTaksShutdownRunningTask

These options can be configured on two scopes: context and route. Where a route will fallback to the context scoped option, if not explicit configured. (same principle as Error Handler, etc.).

ShutdownRoute

This option can control how a given route should act during graceful shutdown. It has two values Default and Defer. The Default is obviously the default option which lets Camel shutdown the route as early as possible. The Defer is used to defer shutting down this route to a later stage. This is useful when other routes are dependent upon it. For example an internal route which other routes reuse.

...