| Modifier and Type | Class and Description |
|---|---|
class |
EnumCounter.EventCountMap
Map for maintaining enum counts.
|
| Constructor and Description |
|---|
EnumCounter(Class<E> keyType)
initializes all the counts.
|
| Modifier and Type | Method and Description |
|---|---|
EnumCounter.EventCountMap |
getEventCounts() |
String |
getLastUpdated() |
EnumCounter.EventCountMap |
getSecEventCounts() |
long |
getValue(String event)
get the event count
|
void |
incrementEventCount(E event)
Increments an event count.
|
void |
incrementEventCount(E event,
int count)
Increments an event count by given value.
|
void |
reset()
Resets all the counts to zeros.
|
void |
resetSecEventCounts()
Resets the secondary event counts.
|
public void reset()
public void resetSecEventCounts()
public EnumCounter.EventCountMap getEventCounts()
public EnumCounter.EventCountMap getSecEventCounts()
public long getValue(String event)
event - the eventpublic void incrementEventCount(E event)
event - the eventpublic void incrementEventCount(E event, int count)
event - the eventcount - the countpublic String getLastUpdated()
Copyright © 2017. All rights reserved.