public class CacheStatistics extends java.lang.Object implements CacheStatisticsEntry, java.lang.Comparable<java.lang.Object>
| Constructor and Description |
|---|
CacheStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all cache statistics.
Method is thread safe but this method is not performed atomically. |
int |
compareTo(java.lang.Object object)
FIXME: check me
|
void |
evicted(java.lang.Object typeCode)
increments evict count for specified type code
|
void |
fetched(java.lang.Object typeCode)
increments load/compute count for specified type code
|
long |
getEvictions()
returns eviction counter for all types
|
long |
getEvictions(java.lang.Object typeCode) |
int |
getFactor() |
int |
getFactor(java.lang.Object typeCode) |
long |
getFetches()
How many db loads / computes performed
|
long |
getFetches(java.lang.Object typeCode) |
long |
getHitCount() |
long |
getHits()
returns hit counter for all types
|
long |
getHits(java.lang.Object typeCode) |
long |
getInstanceCount() |
long |
getInstanceCount(java.lang.Object typeCode) |
long |
getInvalidations()
returns invalidation counter for all types
|
long |
getInvalidations(java.lang.Object typeCode) |
java.lang.String |
getKeyString() |
long |
getMissCount() |
long |
getMisses()
returns miss counter for all types
|
long |
getMisses(java.lang.Object typeCode) |
java.util.Collection<java.lang.Object> |
getTypes()
returns all type codes used in this statistics holder
|
void |
hit(java.lang.Object typeCode)
increments hit count for specified type code
|
void |
invalidated(java.lang.Object typeCode)
increments invalidate count for specified type code
|
void |
missed(java.lang.Object typeCode)
increments miss count for specified type code
|
public void hit(java.lang.Object typeCode)
public void fetched(java.lang.Object typeCode)
public void missed(java.lang.Object typeCode)
public void evicted(java.lang.Object typeCode)
public void invalidated(java.lang.Object typeCode)
public long getHits()
public long getHits(java.lang.Object typeCode)
public long getFetches()
public long getFetches(java.lang.Object typeCode)
public long getMisses()
public long getMisses(java.lang.Object typeCode)
public long getEvictions()
public long getEvictions(java.lang.Object typeCode)
public long getInvalidations()
public long getInvalidations(java.lang.Object typeCode)
public long getInstanceCount()
public long getInstanceCount(java.lang.Object typeCode)
public java.util.Collection<java.lang.Object> getTypes()
public void clear()
public java.lang.String getKeyString()
getKeyString in interface CacheStatisticsEntrypublic long getHitCount()
getHitCount in interface CacheStatisticsEntrypublic long getMissCount()
getMissCount in interface CacheStatisticsEntrypublic int getFactor()
getFactor in interface CacheStatisticsEntrypublic int getFactor(java.lang.Object typeCode)
public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparable<java.lang.Object>Copyright © 2018 SAP SE. All Rights Reserved.