@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 ManagedCounterMBean
public Date getStartTimestamp()
getStartTimestamp
in interface ManagedCounterMBean
public Date getResetTimestamp()
getResetTimestamp
in interface ManagedCounterMBean
public long getExchangesTotal() throws Exception
getExchangesTotal
in interface ManagedCounterMBean
Exception
public void increment()
Apache Camel