Package org.apache.camel.spi
Interface ResourceReloadStrategy
- All Superinterfaces:
AutoCloseable
,CamelContextAware
,Service
,StaticService
SPI strategy for reloading
Resource
in an existing running CamelContext
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Number of reloads failed.int
Number of reloads succeeded.Gets the resource listener that is triggered on reload.void
Reset the counters.void
setResourceReload
(ResourceReload listener) Sets the resource listener to trigger on reload.Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
Method Details
-
getResourceReload
ResourceReload getResourceReload()Gets the resource listener that is triggered on reload. -
setResourceReload
Sets the resource listener to trigger on reload. -
getReloadCounter
int getReloadCounter()Number of reloads succeeded. -
getFailedCounter
int getFailedCounter()Number of reloads failed. -
resetCounters
void resetCounters()Reset the counters.
-