
public class CacheRegistration extends Object implements ICacheRegistration
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR |
| Constructor and Description |
|---|
CacheRegistration(ICacheMonitor cacheMonitor,
ICache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
elementCached(int elementSize) |
void |
elementEvicted(int elementSize) |
void |
elementReconstructed(long reconstructionTime) |
long |
getAverageElementSize() |
ICache |
getCache() |
ICacheMonitor |
getCacheMonitor() |
long |
getCacheSize() |
int |
getElementCount() |
long |
getReconstructionCost() |
protected float |
getReconstructionCostDecayFactor() |
boolean |
isDisposed() |
public static final float DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR
public CacheRegistration(ICacheMonitor cacheMonitor, ICache cache)
public void dispose()
dispose in interface ICacheRegistrationpublic boolean isDisposed()
isDisposed in interface ICacheProbepublic ICacheMonitor getCacheMonitor()
getCacheMonitor in interface ICacheRegistrationpublic ICache getCache()
getCache in interface ICacheRegistrationpublic int getElementCount()
getElementCount in interface ICacheProbepublic long getCacheSize()
getCacheSize in interface ICacheProbepublic long getAverageElementSize()
getAverageElementSize in interface ICacheProbepublic long getReconstructionCost()
getReconstructionCost in interface ICacheProbepublic void elementCached(int elementSize)
elementCached in interface ICacheProbepublic void elementEvicted(int elementSize)
elementEvicted in interface ICacheProbepublic void elementReconstructed(long reconstructionTime)
elementReconstructed in interface ICacheProbeprotected float getReconstructionCostDecayFactor()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.