atavism.server.util
Class CountLogger.Counter
java.lang.Object
atavism.server.util.CountLogger.Counter
- Enclosing class:
- CountLogger
public static class CountLogger.Counter
- extends java.lang.Object
The counter class, managed by the CountLogger instance
Method Summary |
void |
add()
Increment by 1 |
void |
add(long addend)
Increment by an arbitrary number |
long |
getCount()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public java.lang.String name
count
public long count
lastCount
public long lastCount
CountLogger.Counter
public CountLogger.Counter(java.lang.String name)
CountLogger.Counter
public CountLogger.Counter(java.lang.String name,
long count)
add
public void add()
- Increment by 1
add
public void add(long addend)
- Increment by an arbitrary number
getCount
public long getCount()