|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.config.ConfigurationComponent
org.jboss.cache.eviction.EvictionPolicyConfigBase
org.jboss.cache.eviction.ExpirationConfiguration
public class ExpirationConfiguration
Configuration for indicating the Node key for setting a specific eviction time.
| Field Summary | |
|---|---|
static java.lang.String |
EXPIRATION_KEY
Default key name for indicating expiration time. |
| Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
|---|
log |
| Constructor Summary | |
|---|---|
ExpirationConfiguration()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExpirationKeyName()
Returns the expirationKeyName. |
int |
getTimeToLiveSeconds()
|
boolean |
getWarnNoExpirationKey()
Returns true if the algorithm should warn if a expiration key is missing for a node. |
protected void |
setEvictionPolicyClassName()
This method should be overridden by subclass implementers to set the default policy class name for the subclass. |
void |
setExpirationKeyName(java.lang.String expirationKeyName)
Sets the expirationKeyName. |
void |
setTimeToLiveSeconds(int timeToLiveSeconds)
|
void |
setWarnNoExpirationKey(boolean warnNoExpirationKey)
Sets if the algorithm should warn if a expiration key is missing for a node. |
| Methods inherited from class org.jboss.cache.eviction.EvictionPolicyConfigBase |
|---|
equals, getEvictionPolicyClass, getMaxNodes, hashCode, reset, setEvictionPolicyClass, setMaxNodes, validate |
| Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
|---|
addChildConfig, addChildConfigs, clone, getTreeCache, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, safeEquals, setCacheImpl, testImmutability |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXPIRATION_KEY
| Constructor Detail |
|---|
public ExpirationConfiguration()
| Method Detail |
|---|
protected 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 java.lang.String getExpirationKeyName()
public void setExpirationKeyName(java.lang.String expirationKeyName)
public boolean getWarnNoExpirationKey()
public void setWarnNoExpirationKey(boolean warnNoExpirationKey)
public int getTimeToLiveSeconds()
public void setTimeToLiveSeconds(int timeToLiveSeconds)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||