Constructor and Description |
---|
StatsImpl(InterceptorChain chain) |
Modifier and Type | Method and Description |
---|---|
long |
getAverageReadTime() |
long |
getAverageRemoveTime() |
long |
getAverageWriteTime() |
int |
getCurrentNumberOfEntries()
Returns the number of entries currently in this cache instance.
|
long |
getEvictions() |
long |
getHits() |
long |
getMisses() |
long |
getRemoveHits() |
long |
getRemoveMisses() |
long |
getRetrievals() |
long |
getStores() |
long |
getTimeSinceStart() |
long |
getTotalNumberOfEntries()
Number of entries stored in cache since the cache started running.
|
void |
reset()
Reset statistics
|
void |
setStatisticsEnabled(boolean enabled)
Enables or disables statistics at runtime.
|
public StatsImpl(InterceptorChain chain)
public long getTimeSinceStart()
getTimeSinceStart
in interface Stats
public int getCurrentNumberOfEntries()
Stats
getCurrentNumberOfEntries
in interface Stats
public long getTotalNumberOfEntries()
Stats
getTotalNumberOfEntries
in interface Stats
public long getRetrievals()
getRetrievals
in interface Stats
public long getStores()
public long getHits()
public long getMisses()
public long getRemoveHits()
getRemoveHits
in interface Stats
public long getRemoveMisses()
getRemoveMisses
in interface Stats
public long getEvictions()
getEvictions
in interface Stats
public long getAverageReadTime()
getAverageReadTime
in interface Stats
public long getAverageWriteTime()
getAverageWriteTime
in interface Stats
public long getAverageRemoveTime()
getAverageRemoveTime
in interface Stats
public void reset()
Stats
public void setStatisticsEnabled(boolean enabled)
Stats
setStatisticsEnabled
in interface Stats
enabled
- boolean indicating whether statistics should be enable or notCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.