public class ThresholdConditionPolicy extends Object implements ICacheMonitor.ConditionPolicy
Constructor and Description |
---|
ThresholdConditionPolicy(long thresholdRedYellow,
long thresholdYellowGreen) |
Modifier and Type | Method and Description |
---|---|
ICacheMonitor.Condition |
getNewCondition(ICacheMonitor.Condition oldCondition) |
protected ICacheMonitor.Condition |
getNewCondition(ICacheMonitor.Condition oldCondition,
long freeMemory) |
long |
getThresholdRedYellow() |
long |
getThresholdYellowGreen() |
public ThresholdConditionPolicy(long thresholdRedYellow, long thresholdYellowGreen)
public long getThresholdRedYellow()
public long getThresholdYellowGreen()
public ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition)
getNewCondition
in interface ICacheMonitor.ConditionPolicy
protected ICacheMonitor.Condition getNewCondition(ICacheMonitor.Condition oldCondition, long freeMemory)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html