Interface OnCamelContextStopping
- All Superinterfaces:
OnCamelContextEvent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Event handler invoked while the
CamelContext is stopping, before it has fully stopped.
Implementations are registered in the Registry and discovered by Camel during bootstrap. This callback fires
as the context begins shutting down its routes and services, suiting cleanup that must run while the context is still
partly operational. For the full set of lifecycle callbacks see OnCamelContextEvent.
See Lifecycle in the Camel user manual.- Since:
- 3.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonContextStopping(CamelContext context) Callback invoked while theCamelContextis stopping.
-
Method Details
-
onContextStopping
Callback invoked while theCamelContextis stopping.- Parameters:
context- the camel context
-