Package org.eclipse.net4j.util.cache
Class HysteresisConditionPolicy
java.lang.Object
org.eclipse.net4j.util.cache.ThresholdConditionPolicy
org.eclipse.net4j.util.cache.HysteresisConditionPolicy
- All Implemented Interfaces:
ICacheMonitor.ConditionPolicy
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorDescriptionHysteresisConditionPolicy
(long thresholdYellowRed, long thresholdRedYellow, long thresholdGreenYellow, long thresholdYellowGreen) -
Method Summary
Modifier and TypeMethodDescriptionprotected ICacheMonitor.Condition
getNewCondition
(ICacheMonitor.Condition oldCondition, long freeMemory) long
long
Methods inherited from class org.eclipse.net4j.util.cache.ThresholdConditionPolicy
getNewCondition, getThresholdRedYellow, getThresholdYellowGreen
-
Constructor Details
-
HysteresisConditionPolicy
public HysteresisConditionPolicy(long thresholdYellowRed, long thresholdRedYellow, long thresholdGreenYellow, long thresholdYellowGreen)
-
-
Method Details
-
getThresholdYellowRed
public long getThresholdYellowRed() -
getThresholdGreenYellow
public long getThresholdGreenYellow() -
getNewCondition
protected ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition, long freeMemory) - Overrides:
getNewCondition
in classThresholdConditionPolicy
-