@Deprecated public class LRUConfiguration extends EvictionPolicyConfigBase implements ModernizableConfig
LRUPolicy.
If configured via XML, expects the following:
10000 8 10
log| Constructor and Description |
|---|
LRUConfiguration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSecondsaddChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutabilitypublic EvictionAlgorithmConfig modernizeConfig()
modernizeConfig in interface ModernizableConfigprotected void setEvictionPolicyClassName()
EvictionPolicyConfigBasepolicy class name for the subclass.
This will be called when the implementation is constructed, but is also
called in EvictionPolicyConfigBase.reset().setEvictionPolicyClassName in class EvictionPolicyConfigBasepublic int getTimeToLiveSeconds()
public void setTimeToLiveSeconds(int timeToLiveSeconds)
public int getMaxAgeSeconds()
public void setMaxAgeSeconds(int maxAgeSeconds)
public void validate()
throws ConfigurationException
validate in interface EvictionPolicyConfigvalidate in class EvictionPolicyConfigBaseConfigurationException - if any values for the configuration
properties are invalidpublic boolean equals(Object o)
equals in class EvictionPolicyConfigBasepublic int hashCode()
hashCode in class EvictionPolicyConfigBasepublic void reset()
EvictionPolicyConfigreset in interface EvictionPolicyConfigreset in class EvictionPolicyConfigBasepublic LRUConfiguration clone() throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in class ConfigurationComponentCloneNotSupportedExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.