org.apache.camel.management
Class Counter
java.lang.Object
org.apache.camel.management.Counter
- Direct Known Subclasses:
- PerformanceCounter
@ManagedResource(description="Counter",
currencyTimeLimit=15)
public class Counter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numExchanges
protected AtomicLong numExchanges
Counter
public Counter()
reset
@ManagedOperation(description="Reset counters")
public void reset()
getNumExchanges
@ManagedAttribute(description="Total number of exchanges")
public long getNumExchanges()
throws Exception
- Throws:
Exception
increment
public long increment()
Apache CAMEL