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.

@FunctionalInterface public interface OnCamelContextStopping extends OnCamelContextEvent
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 Details

    • onContextStopping

      void onContextStopping(CamelContext context)
      Callback invoked while the CamelContext is stopping.
      Parameters:
      context - the camel context