org.apache.camel.management
Class Counter

java.lang.Object
  extended by org.apache.camel.management.Counter
Direct Known Subclasses:
PerformanceCounter

@ManagedResource(description="Counter",
                 currencyTimeLimit=15)
public class Counter
extends Object


Field Summary
protected  AtomicLong numExchanges
           
 
Constructor Summary
Counter()
           
 
Method Summary
 long getNumExchanges()
           
 long increment()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numExchanges

protected AtomicLong numExchanges
Constructor Detail

Counter

public Counter()
Method Detail

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