@Deprecated public class ExpirationConfiguration extends EvictionPolicyConfigBase implements ModernizableConfig
Modifier and Type | Field and Description |
---|---|
static String |
EXPIRATION_KEY
Deprecated.
Default key name for indicating expiration time.
|
log
Constructor and Description |
---|
ExpirationConfiguration()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ExpirationConfiguration |
clone()
Deprecated.
|
String |
getExpirationKeyName()
Deprecated.
Returns the expirationKeyName.
|
int |
getTimeToLiveSeconds()
Deprecated.
|
boolean |
getWarnNoExpirationKey()
Deprecated.
Returns true if the algorithm should warn if a expiration key is missing for a node.
|
EvictionAlgorithmConfig |
modernizeConfig()
Deprecated.
|
protected void |
setEvictionPolicyClassName()
Deprecated.
This method should be overridden by subclass implementers to set the default
policy class name for the subclass. |
void |
setExpirationKeyName(String expirationKeyName)
Deprecated.
Sets the expirationKeyName.
|
void |
setTimeToLiveSeconds(int timeToLiveSeconds)
Deprecated.
|
void |
setWarnNoExpirationKey(boolean warnNoExpirationKey)
Deprecated.
Sets if the algorithm should warn if a expiration key is missing for a node.
|
equals, getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, hashCode, reset, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSeconds, validate
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
public static final String EXPIRATION_KEY
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 EvictionAlgorithmConfig modernizeConfig()
modernizeConfig
in interface ModernizableConfig
public String getExpirationKeyName()
public void setExpirationKeyName(String expirationKeyName)
public boolean getWarnNoExpirationKey()
public void setWarnNoExpirationKey(boolean warnNoExpirationKey)
public int getTimeToLiveSeconds()
public void setTimeToLiveSeconds(int timeToLiveSeconds)
public ExpirationConfiguration clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class ConfigurationComponent
CloneNotSupportedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.