@ManagedResource(description="Managed Counter") public abstract class ManagedCounter extends Object implements org.apache.camel.api.management.mbean.ManagedCounterMBean
| Modifier and Type | Field and Description |
|---|---|
protected Statistic |
exchangesTotal |
protected Date |
resetTimestamp |
protected Date |
startTimestamp |
| Constructor and Description |
|---|
ManagedCounter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getExchangesTotal() |
Date |
getResetTimestamp() |
Date |
getStartTimestamp() |
void |
increment() |
void |
init(org.apache.camel.spi.ManagementStrategy strategy) |
void |
reset() |
protected Statistic exchangesTotal
protected Date startTimestamp
protected Date resetTimestamp
public ManagedCounter()
public void init(org.apache.camel.spi.ManagementStrategy strategy)
public void reset()
reset in interface org.apache.camel.api.management.mbean.ManagedCounterMBeanpublic Date getStartTimestamp()
getStartTimestamp in interface org.apache.camel.api.management.mbean.ManagedCounterMBeanpublic Date getResetTimestamp()
getResetTimestamp in interface org.apache.camel.api.management.mbean.ManagedCounterMBeanpublic long getExchangesTotal() throws Exception
getExchangesTotal in interface org.apache.camel.api.management.mbean.ManagedCounterMBeanExceptionpublic void increment()
Apache Camel