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