public interface PerformanceCounter
Exchange is routed in Camel.| Modifier and Type | Method and Description |
|---|---|
void |
completedExchange(Exchange exchange,
long time)
Executed when an
Exchange is complete. |
void |
failedExchange(Exchange exchange)
Executed when an
Exchange failed. |
boolean |
isStatisticsEnabled()
Are statistics enabled?
They can be enabled and disabled at runtime
|
void |
processExchange(Exchange exchange)
Executed when an
Exchange is about to be processed. |
void |
setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics are enabled.
|
void processExchange(Exchange exchange)
Exchange is about to be processed.exchange - the exchangevoid completedExchange(Exchange exchange, long time)
Exchange is complete.exchange - the exchangetime - the time it took in millis to completevoid failedExchange(Exchange exchange)
Exchange failed.exchange - the exchangeboolean isStatisticsEnabled()
void setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled - whether statistics are enabled or notApache Camel