Interface ResourceReloadStrategy

All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, ReloadStrategy, Service, StaticService

public interface ResourceReloadStrategy extends ReloadStrategy
SPI strategy for reloading Resources in an already running CamelContext.

The strategy watches resources (typically route files) and, on change, notifies its configured ResourceReload listener so Camel can apply the updated definitions live. It is the resource-oriented counterpart to ContextReloadStrategy and builds on the generic ReloadStrategy.

See Route Reload in the Camel user manual.

Since:
3.14
See Also:
  • Method Details

    • getResourceReload

      ResourceReload getResourceReload()
      Gets the resource listener that is triggered on reload.
    • setResourceReload

      void setResourceReload(ResourceReload listener)
      Sets the resource listener to trigger on reload.