Package org.eclipse.net4j.util.cache
Class CacheRegistration
- java.lang.Object
- 
- org.eclipse.net4j.util.cache.CacheRegistration
 
- 
- All Implemented Interfaces:
- ICacheProbe,- ICacheRegistration
 
 public class CacheRegistration extends java.lang.Object implements ICacheRegistration - Author:
- Eike Stepper
 
- 
- 
Field SummaryFields Modifier and Type Field Description static floatDEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR
 - 
Constructor SummaryConstructors Constructor Description CacheRegistration(ICacheMonitor cacheMonitor, ICache cache)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidelementCached(int elementSize)voidelementEvicted(int elementSize)voidelementReconstructed(long reconstructionTime)longgetAverageElementSize()ICachegetCache()ICacheMonitorgetCacheMonitor()longgetCacheSize()intgetElementCount()longgetReconstructionCost()protected floatgetReconstructionCostDecayFactor()booleanisDisposed()
 
- 
- 
- 
Field Detail- 
DEFAULT_RECONSTRUCTION_COST_DECAY_FACTORpublic static final float DEFAULT_RECONSTRUCTION_COST_DECAY_FACTOR - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CacheRegistrationpublic CacheRegistration(ICacheMonitor cacheMonitor, ICache cache) 
 
- 
 - 
Method Detail- 
disposepublic void dispose() - Specified by:
- disposein interface- ICacheRegistration
 
 - 
isDisposedpublic boolean isDisposed() - Specified by:
- isDisposedin interface- ICacheProbe
 
 - 
getCacheMonitorpublic ICacheMonitor getCacheMonitor() - Specified by:
- getCacheMonitorin interface- ICacheRegistration
 
 - 
getCachepublic ICache getCache() - Specified by:
- getCachein interface- ICacheRegistration
 
 - 
getElementCountpublic int getElementCount() - Specified by:
- getElementCountin interface- ICacheProbe
 
 - 
getCacheSizepublic long getCacheSize() - Specified by:
- getCacheSizein interface- ICacheProbe
 
 - 
getAverageElementSizepublic long getAverageElementSize() - Specified by:
- getAverageElementSizein interface- ICacheProbe
 
 - 
getReconstructionCostpublic long getReconstructionCost() - Specified by:
- getReconstructionCostin interface- ICacheProbe
 
 - 
elementCachedpublic void elementCached(int elementSize) - Specified by:
- elementCachedin interface- ICacheProbe
 
 - 
elementEvictedpublic void elementEvicted(int elementSize) - Specified by:
- elementEvictedin interface- ICacheProbe
 
 - 
elementReconstructedpublic void elementReconstructed(long reconstructionTime) - Specified by:
- elementReconstructedin interface- ICacheProbe
 
 - 
getReconstructionCostDecayFactorprotected float getReconstructionCostDecayFactor() 
 
- 
 
-