|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PerformanceCounter
A counter that gathers performance metrics when an Exchange
is routed in Camel.
Method Summary | |
---|---|
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 |
setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics are enabled. |
Method Detail |
---|
void 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 not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |