|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.ConfigurationComponent org.jboss.cache.eviction.EvictionPolicyConfigBase org.jboss.cache.eviction.LRUConfiguration
LRUAlgorithmConfig
@Deprecated public class LRUConfiguration
Configuration implementation for LRUPolicy
.
10000 8 10
Field Summary |
---|
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
LRUConfiguration()
Deprecated. |
Method Summary | |
---|---|
LRUConfiguration |
clone()
Deprecated. |
boolean |
equals(Object o)
Deprecated. |
int |
getMaxAgeSeconds()
Deprecated. |
int |
getTimeToLiveSeconds()
Deprecated. |
int |
hashCode()
Deprecated. |
EvictionAlgorithmConfig |
modernizeConfig()
Deprecated. |
void |
reset()
Deprecated. Resets the values to their defaults. |
protected void |
setEvictionPolicyClassName()
Deprecated. This method should be overridden by subclass implementers to set the default policy class name for the subclass. |
void |
setMaxAgeSeconds(int maxAgeSeconds)
Deprecated. |
void |
setTimeToLiveSeconds(int timeToLiveSeconds)
Deprecated. |
String |
toString()
Deprecated. |
void |
validate()
Deprecated. Requires a positive timeToLive value or ConfigurationException is thrown. |
Methods inherited from class org.jboss.cache.eviction.EvictionPolicyConfigBase |
---|
getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSeconds |
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LRUConfiguration()
Method Detail |
---|
public EvictionAlgorithmConfig modernizeConfig()
modernizeConfig
in interface ModernizableConfig
protected void setEvictionPolicyClassName()
EvictionPolicyConfigBase
policy class name
for the subclass.
This will be called when the implementation is constructed, but is also
called in EvictionPolicyConfigBase.reset()
.
setEvictionPolicyClassName
in class EvictionPolicyConfigBase
public int getTimeToLiveSeconds()
public void setTimeToLiveSeconds(int timeToLiveSeconds)
public int getMaxAgeSeconds()
public void setMaxAgeSeconds(int maxAgeSeconds)
public void validate() throws ConfigurationException
validate
in interface EvictionPolicyConfig
validate
in class EvictionPolicyConfigBase
ConfigurationException
- if any values for the configuration
properties are invalidpublic String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class EvictionPolicyConfigBase
public int hashCode()
hashCode
in class EvictionPolicyConfigBase
public void reset()
EvictionPolicyConfig
reset
in interface EvictionPolicyConfig
reset
in class EvictionPolicyConfigBase
public LRUConfiguration clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class ConfigurationComponent
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |