public class ExpirationAlgorithmConfig extends EvictionAlgorithmConfigBase
Modifier and Type | Field and Description |
---|---|
static String |
EXPIRATION_KEY
Default key name for indicating expiration time.
|
evictionAlgorithmClassName, maxNodes, minTimeToLive
log
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, validate
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
public 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 CloneableConfigurationComponent
clone
in interface EvictionAlgorithmConfig
clone
in class EvictionAlgorithmConfigBase
CloneNotSupportedException
public boolean equals(Object o)
equals
in class EvictionAlgorithmConfigBase
public int hashCode()
hashCode
in class EvictionAlgorithmConfigBase
public void reset()
EvictionAlgorithmConfig
reset
in interface EvictionAlgorithmConfig
reset
in class EvictionAlgorithmConfigBase
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.