Package org.eclipse.net4j.util.cache
Class CacheRegistration
java.lang.Object
org.eclipse.net4j.util.cache.CacheRegistration
- All Implemented Interfaces:
ICacheProbe,ICacheRegistration
- Author:
- Eike Stepper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidelementCached(int elementSize) voidelementEvicted(int elementSize) voidelementReconstructed(long reconstructionTime) longgetCache()longintlongprotected floatboolean
-
Field Details
-
DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR
public static final float DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR- See Also:
-
-
Constructor Details
-
CacheRegistration
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfaceICacheRegistration
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposedin interfaceICacheProbe
-
getCacheMonitor
- Specified by:
getCacheMonitorin interfaceICacheRegistration
-
getCache
- Specified by:
getCachein interfaceICacheRegistration
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceICacheProbe
-
getCacheSize
public long getCacheSize()- Specified by:
getCacheSizein interfaceICacheProbe
-
getAverageElementSize
public long getAverageElementSize()- Specified by:
getAverageElementSizein interfaceICacheProbe
-
getReconstructionCost
public long getReconstructionCost()- Specified by:
getReconstructionCostin interfaceICacheProbe
-
elementCached
public void elementCached(int elementSize) - Specified by:
elementCachedin interfaceICacheProbe
-
elementEvicted
public void elementEvicted(int elementSize) - Specified by:
elementEvictedin interfaceICacheProbe
-
elementReconstructed
public void elementReconstructed(long reconstructionTime) - Specified by:
elementReconstructedin interfaceICacheProbe
-
getReconstructionCostDecayFactor
protected float getReconstructionCostDecayFactor()
-