|
||||||||||
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.EvictionAlgorithmConfigBase org.jboss.cache.eviction.ExpirationAlgorithmConfig
public class ExpirationAlgorithmConfig
Configuration for indicating the Node key for setting a specific eviction time.
Field Summary | |
---|---|
static String |
EXPIRATION_KEY
Default key name for indicating expiration time. |
Fields inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase |
---|
evictionAlgorithmClassName, maxNodes, minTimeToLive |
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
ExpirationAlgorithmConfig()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase |
---|
getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, setMaxNodes, setMinTimeToLive, setMinTimeToLive, setMinTimeToLiveSeconds, validate |
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 |
Field Detail |
---|
public static final String EXPIRATION_KEY
Constructor Detail |
---|
public ExpirationAlgorithmConfig()
Method Detail |
---|
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
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |