public interface ReloadStrategy extends Service, StaticService, CamelContextAware
CamelContext
Modifier and Type | Method and Description |
---|---|
int |
getFailedCounter()
Number of reloads failed.
|
int |
getReloadCounter()
Number of reloads succeeded.
|
void |
onReloadXml(CamelContext camelContext,
String name,
InputStream resource)
A reload is triggered when a XML resource is changed which contains Camel routes.
|
void |
resetCounters()
Reset the counters.
|
getCamelContext, setCamelContext
void onReloadXml(CamelContext camelContext, String name, InputStream resource)
camelContext
- the running CamelContextname
- name of resource such as a file name (can be null)resource
- the changed resourceint getReloadCounter()
int getFailedCounter()
void resetCounters()
Apache Camel