|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.util.Counter
public class Counter
This class counts different messages
Constructor Summary | |
---|---|
Counter()
|
Method Summary | |
---|---|
int |
get(String key)
Get the current count for an event. |
void |
inc(String log)
Increase a logentry. |
Set<String> |
keys()
Get all events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Counter()
Method Detail |
---|
public void inc(String log)
log
- the event to increasepublic Set<String> keys()
public int get(String key)
key
- the event were intrested in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |