Package org.apache.camel.spi
Interface ReloadStrategy
-
- All Superinterfaces:
AutoCloseable,CamelContextAware,Service,StaticService
- All Known Subinterfaces:
ContextReloadStrategy,ResourceReloadStrategy
public interface ReloadStrategy extends StaticService, CamelContextAware
SPI strategy for reloading.- See Also:
ContextReloadStrategy,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.voidresetCounters()Reset the counters.-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
-
-
-
Method Detail
-
onReload
void onReload(Object source)
Trigger reload.- 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.
-
-