public interface CacheStatistics extends Serializable
java.lang.Object
. All per-class statistics depends on
determining the runtime type of the instance being cached. If it is not
possible to determine the runtime type from the given context, the statistics
is registered under generic java.lang.Object
.Modifier and Type | Method and Description |
---|---|
Set<String> |
classNames()
Returns the types that are known to this cache being tracked.
|
long |
getHitCount()
Gets number of total read requests that has been found in cache since
last reset.
|
long |
getHitCount(Class<?> cls)
Deprecated.
- should use getHitCount(String c)
|
long |
getHitCount(String c)
Gets number of total read requests that has been found in cache for the given class since last reset.
|
long |
getReadCount()
Gets number of total read requests since last reset.
|
long |
getReadCount(Class<?> cls)
Deprecated.
- should use getReadCount(String c)
|
long |
getReadCount(String c)
Gets number of total read requests for the given class since last reset.
|
long |
getTotalHitCount()
Gets number of total read requests that has been found in cache since
start.
|
long |
getTotalHitCount(Class<?> cls)
Deprecated.
- should use getTotalHitCount(String c)
|
long |
getTotalHitCount(String c)
Gets number of total read requests that has been found in cache for the given class since start.
|
long |
getTotalReadCount()
Gets number of total read requests since start.
|
long |
getTotalReadCount(Class<?> cls)
Deprecated.
- should use getTotalReadCount(String c)
|
long |
getTotalReadCount(String c)
Gets number of total read requests for the given class since start.
|
long |
getTotalWriteCount()
Gets number of total write requests since start.
|
long |
getTotalWriteCount(Class<?> cls)
Deprecated.
- should use getTotalWriteCount(String c)
|
long |
getTotalWriteCount(String c)
Gets number of total write requests for the given class since start.
|
long |
getWriteCount()
Gets number of total write requests since last reset.
|
long |
getWriteCount(Class<?> cls)
Deprecated.
- should use getWriteCount(String c)
|
long |
getWriteCount(String c)
Gets number of total write requests for the given class since last reset.
|
boolean |
isEnabled()
Returns whether or not statistics will be collected.
|
void |
reset()
Clears all accumulated statistics.
|
Date |
since()
Gets the time of last reset.
|
Date |
start()
Gets the time of start.
|
Map<String,long[]> |
toMap() |
long getReadCount()
long getHitCount()
long getWriteCount()
long getTotalReadCount()
long getTotalHitCount()
long getTotalWriteCount()
@Deprecated long getReadCount(Class<?> cls)
long getReadCount(String c)
@Deprecated long getHitCount(Class<?> cls)
long getHitCount(String c)
@Deprecated long getWriteCount(Class<?> cls)
long getWriteCount(String c)
@Deprecated long getTotalReadCount(Class<?> cls)
long getTotalReadCount(String c)
long getTotalHitCount(String c)
@Deprecated long getTotalHitCount(Class<?> cls)
long getTotalWriteCount(String c)
@Deprecated long getTotalWriteCount(Class<?> cls)
Date since()
Date start()
void reset()
boolean isEnabled()
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.