Package org.apache.camel.spi
Interface ContextReloadStrategy
-
- All Superinterfaces:
AutoCloseable,CamelContextAware,Service,StaticService
public interface ContextReloadStrategy extends StaticService, CamelContextAware
SPI strategy for reloadingCamelContext. The reloading is limited to all routes and property placeholders. General services in theCamelContextis not reloaded.- See Also:
ResourceReloadStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFailedCounter()Number of reloads failed.intgetReloadCounter()Number of reloads succeeded.voidonReload(Object source)Trigger reload of theCamelContext.voidresetCounters()Reset the counters.-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
-
-
-
Method Detail
-
onReload
void onReload(Object source)
Trigger reload of theCamelContext.- Parameters:
source- source that triggers the reloading.
-
getReloadCounter
int getReloadCounter()
Number of reloads succeeded.
-
getFailedCounter
int getFailedCounter()
Number of reloads failed.
-
resetCounters
void resetCounters()
Reset the counters.
-
-