@ManagedResource(description="Managed Counter") public abstract class ManagedCounter extends Object implements 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(ManagementStrategy strategy) |
void |
reset() |
protected Statistic exchangesTotal
protected Date startTimestamp
protected Date resetTimestamp
public ManagedCounter()
public void init(ManagementStrategy strategy)
public void reset()
reset in interface ManagedCounterMBeanpublic Date getStartTimestamp()
getStartTimestamp in interface ManagedCounterMBeanpublic Date getResetTimestamp()
getResetTimestamp in interface ManagedCounterMBeanpublic long getExchangesTotal() throws Exception
getExchangesTotal in interface ManagedCounterMBeanExceptionpublic void increment()
Apache Camel