public interface IStatsUsageService
StatsUsage
Modifier and Type | Field and Description |
---|---|
static int |
FLUSH_THRESHOLD
The satsUsage will be flush into the database every ...
|
Modifier and Type | Method and Description |
---|---|
void |
flush(StatsUsageType statsUsageType) |
int |
getNumberOfCounter() |
Long |
getUsage(StatsUsageType statsUsageType) |
void |
increaseUsage(StatsUsageType statsUsageType) |
void |
resetUsage(StatsUsageType statsUsageType) |
static final int FLUSH_THRESHOLD
int getNumberOfCounter()
Long getUsage(StatsUsageType statsUsageType)
statsUsageType
- the usagetypeStatsUsageType
void increaseUsage(StatsUsageType statsUsageType)
statsUsageType
- the StatsUsageType
counter to increase Increase
the counter of the specified typevoid resetUsage(StatsUsageType statsUsageType)
statsUsageType
- the StatsUsageType
to reset reset the stats for
the specified StatsUsageType
void flush(StatsUsageType statsUsageType)
statsUsageType
- the StatsUsageType
to flush flush the value into
databaseCopyright © 2015. All rights reserved.