|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShutdownAware
Allows Consumer
to fine grained control on shutdown which mostly
have to cater for in-memory based components. These components need to be able to have an extra
chance to have their pending exchanges being completed to support graceful shutdown. This helps
ensure that no messages get lost.
ShutdownStrategy
Method Summary | |
---|---|
boolean |
deferShutdown(ShutdownRunningTask shutdownRunningTask)
To defer shutdown during first phase of shutdown. |
int |
getPendingExchangesSize()
Gets the number of pending exchanges. |
Methods inherited from interface org.apache.camel.spi.ShutdownPrepared |
---|
prepareShutdown |
Method Detail |
---|
boolean deferShutdown(ShutdownRunningTask shutdownRunningTask)
SedaConsumer
.
shutdownRunningTask
- the configured option for how to act when shutting down running tasks.
int getPendingExchangesSize()
Exchange
which are pending.
For example the SedaConsumer
.
Return zero to indicate no pending exchanges and therefore ready to shutdown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |