Package org.eclipse.net4j.util.cache
Class ThresholdConditionPolicy
java.lang.Object
org.eclipse.net4j.util.cache.ThresholdConditionPolicy
- All Implemented Interfaces:
ICacheMonitor.ConditionPolicy
- Direct Known Subclasses:
HysteresisConditionPolicy
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorDescriptionThresholdConditionPolicy
(long thresholdRedYellow, long thresholdYellowGreen) -
Method Summary
Modifier and TypeMethodDescriptiongetNewCondition
(ICacheMonitor.Condition oldCondition) protected ICacheMonitor.Condition
getNewCondition
(ICacheMonitor.Condition oldCondition, long freeMemory) long
long
-
Constructor Details
-
ThresholdConditionPolicy
public ThresholdConditionPolicy(long thresholdRedYellow, long thresholdYellowGreen)
-
-
Method Details
-
getThresholdRedYellow
public long getThresholdRedYellow() -
getThresholdYellowGreen
public long getThresholdYellowGreen() -
getNewCondition
- Specified by:
getNewCondition
in interfaceICacheMonitor.ConditionPolicy
-
getNewCondition
protected ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition, long freeMemory)
-