Versions Compared

Key

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

...

The interface org.apache.camel.spi.ShutdownAware is an optional interface consumers can implement to have fine grained control during shutdown. The ShutdownStrategy must be able to deal with consumers which implements this interface. This interface was introduced to cater for in memory consumers such as SEDA which potentially have a number of pending messages on its internal in memory queues. What this allows is to let it control the shutdown process to let it complete its pending messages.

The method getPendingExchanges getPendingExchangesSize should return the number of pending messages which reside on the in memory queues.
The method canShutdown deferShutdown should return false to defer the shutdown to very last when there are no more pending and inflight messages.

...