org.eclipse.net4j.util.cache
Class HysteresisConditionPolicy

java.lang.Object
  extended by org.eclipse.net4j.util.cache.ThresholdConditionPolicy
      extended by org.eclipse.net4j.util.cache.HysteresisConditionPolicy
All Implemented Interfaces:
ICacheMonitor.ConditionPolicy

public class HysteresisConditionPolicy
extends ThresholdConditionPolicy


Constructor Summary
HysteresisConditionPolicy(long thresholdYellowRed, long thresholdRedYellow, long thresholdGreenYellow, long thresholdYellowGreen)
           
 
Method Summary
protected  ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition, long freeMemory)
           
 long getThresholdGreenYellow()
           
 long getThresholdYellowRed()
           
 
Methods inherited from class org.eclipse.net4j.util.cache.ThresholdConditionPolicy
getNewCondition, getThresholdRedYellow, getThresholdYellowGreen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HysteresisConditionPolicy

public HysteresisConditionPolicy(long thresholdYellowRed,
                                 long thresholdRedYellow,
                                 long thresholdGreenYellow,
                                 long thresholdYellowGreen)
Method Detail

getThresholdYellowRed

public long getThresholdYellowRed()

getThresholdGreenYellow

public long getThresholdGreenYellow()

getNewCondition

protected ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition,
                                                  long freeMemory)
Overrides:
getNewCondition in class ThresholdConditionPolicy


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.