Class RouteOnDemandReloadStrategy

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ReloadStrategy, org.apache.camel.spi.ResourceReloadStrategy, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

    @ManagedResource(description="Managed RouteOnDemandReloadStrategy")
    public class RouteOnDemandReloadStrategy
    extends RouteWatcherReloadStrategy
    Strategy for triggering on-demand reloading of Camel routes in a running Camel application. The strategy is triggered on-demand and reload all files from a directory (and subdirectories).
    • Constructor Detail

      • RouteOnDemandReloadStrategy

        public RouteOnDemandReloadStrategy()
      • RouteOnDemandReloadStrategy

        public RouteOnDemandReloadStrategy​(String directory)
      • RouteOnDemandReloadStrategy

        public RouteOnDemandReloadStrategy​(String directory,
                                           boolean recursive)
    • Method Detail

      • onReload

        @ManagedOperation(description="Trigger on-demand reloading")
        public void onReload()
        Triggers on-demand reloading