public class ExpirationAlgorithmConfig extends EvictionAlgorithmConfigBase
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPIRATION_KEY
Default key name for indicating expiration time.
|
evictionAlgorithmClassName, maxNodes, minTimeToLivelog| Constructor and Description |
|---|
ExpirationAlgorithmConfig() |
| Modifier and Type | Method and Description |
|---|---|
ExpirationAlgorithmConfig |
clone() |
boolean |
equals(Object o) |
String |
getExpirationKeyName()
Returns the expirationKeyName.
|
long |
getTimeToLive() |
int |
hashCode() |
boolean |
isWarnNoExpirationKey()
Returns true if the algorithm should warn if a expiration key is missing for a node.
|
void |
reset()
Resets the values to their defaults.
|
void |
setExpirationKeyName(String expirationKeyName)
Sets the expirationKeyName.
|
void |
setTimeToLive(long timeToLive)
Sets the time to live
|
void |
setTimeToLive(long timeToLive,
TimeUnit timeUnit) |
void |
setTimeToLiveSeconds(long time)
Deprecated.
|
void |
setWarnNoExpirationKey(boolean warnNoExpirationKey)
Sets if the algorithm should warn if a expiration key is missing for a node.
|
String |
toString() |
getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSeconds, validateaddChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutabilitypublic static final String EXPIRATION_KEY
public String getExpirationKeyName()
public void setExpirationKeyName(String expirationKeyName)
public boolean isWarnNoExpirationKey()
public void setWarnNoExpirationKey(boolean warnNoExpirationKey)
public long getTimeToLive()
public void setTimeToLive(long timeToLive)
timeToLive - value in millisecondspublic void setTimeToLive(long timeToLive,
TimeUnit timeUnit)
@Deprecated public void setTimeToLiveSeconds(long time)
public ExpirationAlgorithmConfig clone() throws CloneNotSupportedException
clone in interface CloneableConfigurationComponentclone in interface EvictionAlgorithmConfigclone in class EvictionAlgorithmConfigBaseCloneNotSupportedExceptionpublic boolean equals(Object o)
equals in class EvictionAlgorithmConfigBasepublic int hashCode()
hashCode in class EvictionAlgorithmConfigBasepublic void reset()
EvictionAlgorithmConfigreset in interface EvictionAlgorithmConfigreset in class EvictionAlgorithmConfigBaseCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.