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 ICacheRegistration
public boolean isDisposed()
isDisposed
in interface ICacheProbe
public ICacheMonitor getCacheMonitor()
getCacheMonitor
in interface ICacheRegistration
public ICache getCache()
getCache
in interface ICacheRegistration
public int getElementCount()
getElementCount
in interface ICacheProbe
public long getCacheSize()
getCacheSize
in interface ICacheProbe
public long getAverageElementSize()
getAverageElementSize
in interface ICacheProbe
public long getReconstructionCost()
getReconstructionCost
in interface ICacheProbe
public void elementCached(int elementSize)
elementCached
in interface ICacheProbe
public void elementEvicted(int elementSize)
elementEvicted
in interface ICacheProbe
public void elementReconstructed(long reconstructionTime)
elementReconstructed
in interface ICacheProbe
protected float getReconstructionCostDecayFactor()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.