Interface OnCamelContextStarted

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 OnCamelContextStarted extends OnCamelContextEvent
Event handler invoked after the CamelContext has fully started and its routes are running.

Implementations are registered in the Registry and discovered by Camel during bootstrap. By the time this callback fires the context is operational, making it a good place for actions that require a running context, such as triggering an initial message. 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 Type
    Method
    Description
    void
    Callback invoked after the CamelContext has been started.
  • Method Details

    • onContextStarted

      void onContextStarted(CamelContext context)
      Callback invoked after the CamelContext has been started.
      Parameters:
      context - the camel context