Interface ReloadStrategy
- All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, StaticService
- All Known Subinterfaces:
ContextReloadStrategy, ResourceReloadStrategy
SPI strategy for reloading.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintNumber of reloads failed.Gets the last error if reloading failedintNumber of reloads succeeded.voidTrigger reload.voidReset the counters.Methods inherited from interface CamelContextAware
setCamelContextMethods inherited from interface HasCamelContext
getCamelContext
-
Method Details
-
onReload
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. -
getLastError
Exception getLastError()Gets the last error if reloading failed
-