public class CacheStats extends Object implements StatsListener
Constructor and Description |
---|
CacheStats(String instanceName,
Debug debugObject) |
Modifier and Type | Method and Description |
---|---|
static CacheStats |
createInstance(String instanceName,
Debug debugObject)
Creates a new CacheStats object, adds the object as a listener to the
Stats class and returns the object.
|
protected int |
getIntervalCount() |
String |
getName() |
void |
incrementRequestCount(int sizeOfCache) |
void |
printStats()
This method will be invoked when the stats time interval elapsed.
|
void |
updateHitCount(int sizeOfCache) |
public static CacheStats createInstance(String instanceName, Debug debugObject)
instanceName
- name associated with the CacheStats instance.debugObject
- the debug instance to which the CacheStats object will be
associated.public String getName()
public void updateHitCount(int sizeOfCache)
public void incrementRequestCount(int sizeOfCache)
protected int getIntervalCount()
public void printStats()
StatsListener
printStats
in interface StatsListener
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.