@ManagedResource(description="Managed Counter") public abstract class ManagedCounter extends Object implements ManagedCounterMBean
| Modifier and Type | Field and Description |
|---|---|
protected Statistic |
exchangesTotal |
protected Statistic |
resetTimestamp |
protected Statistic |
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 Statistic startTimestamp
protected Statistic 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