| Constructor and Description |
|---|
StatsImpl(InterceptorChain chain) |
StatsImpl(Stats other) |
| 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 |
getTimeSinceReset() |
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 StatsImpl(Stats other)
public long getTimeSinceStart()
getTimeSinceStart in interface Statspublic long getTimeSinceReset()
getTimeSinceReset in interface Statspublic int getCurrentNumberOfEntries()
StatsgetCurrentNumberOfEntries in interface Statspublic long getTotalNumberOfEntries()
StatsgetTotalNumberOfEntries in interface Statspublic long getRetrievals()
getRetrievals in interface Statspublic long getStores()
public long getHits()
public long getMisses()
public long getRemoveHits()
getRemoveHits in interface Statspublic long getRemoveMisses()
getRemoveMisses in interface Statspublic long getEvictions()
getEvictions in interface Statspublic long getAverageReadTime()
getAverageReadTime in interface Statspublic long getAverageWriteTime()
getAverageWriteTime in interface Statspublic long getAverageRemoveTime()
getAverageRemoveTime in interface Statspublic void reset()
Statspublic void setStatisticsEnabled(boolean enabled)
StatssetStatisticsEnabled in interface Statsenabled - boolean indicating whether statistics should be enable or notCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.