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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
elementCached
(int elementSize) void
elementEvicted
(int elementSize) void
elementReconstructed
(long reconstructionTime) long
getCache()
long
int
long
protected float
boolean
-
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:
dispose
in interfaceICacheRegistration
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfaceICacheProbe
-
getCacheMonitor
- Specified by:
getCacheMonitor
in interfaceICacheRegistration
-
getCache
- Specified by:
getCache
in interfaceICacheRegistration
-
getElementCount
public int getElementCount()- Specified by:
getElementCount
in interfaceICacheProbe
-
getCacheSize
public long getCacheSize()- Specified by:
getCacheSize
in interfaceICacheProbe
-
getAverageElementSize
public long getAverageElementSize()- Specified by:
getAverageElementSize
in interfaceICacheProbe
-
getReconstructionCost
public long getReconstructionCost()- Specified by:
getReconstructionCost
in interfaceICacheProbe
-
elementCached
public void elementCached(int elementSize) - Specified by:
elementCached
in interfaceICacheProbe
-
elementEvicted
public void elementEvicted(int elementSize) - Specified by:
elementEvicted
in interfaceICacheProbe
-
elementReconstructed
public void elementReconstructed(long reconstructionTime) - Specified by:
elementReconstructed
in interfaceICacheProbe
-
getReconstructionCostDecayFactor
protected float getReconstructionCostDecayFactor()
-