|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jmx.adaptor.snmp.agent.Counter
Simple, thread safe counter implementattion with accessor methods. (Maybe replace with EDU.oswego.cs.dl.util.concurrent.SynchronizedLong?)
Constructor Summary | |
Counter(long countStart)
CTOR - initialises the counter to the provided value. |
Method Summary | |
long |
advance()
Returns the current value (i.e. |
long |
peek()
Returns the current value (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Counter(long countStart)
countStart
- the starting counter valueMethod Detail |
public long peek()
public long advance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |