Interface ResourceReloadStrategy
- All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, ReloadStrategy, Service, StaticService
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 Summary
Modifier and TypeMethodDescriptionGets the resource listener that is triggered on reload.voidsetResourceReload(ResourceReload listener) Sets the resource listener to trigger on reload.Methods inherited from interface CamelContextAware
setCamelContextMethods inherited from interface HasCamelContext
getCamelContextMethods inherited from interface ReloadStrategy
getFailedCounter, getLastError, getReloadCounter, onReload, resetCounters
-
Method Details
-
getResourceReload
ResourceReload getResourceReload()Gets the resource listener that is triggered on reload. -
setResourceReload
Sets the resource listener to trigger on reload.
-