org.jboss.cache.eviction
Class FIFOConfiguration

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.eviction.EvictionPolicyConfigBase
          extended by org.jboss.cache.eviction.FIFOConfiguration
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, EvictionPolicyConfig, ModernizableConfig

Deprecated. see FIFOAlgorithmConfig

@Deprecated
public class FIFOConfiguration
extends EvictionPolicyConfigBase
implements ModernizableConfig

Configuration for FIFOPolicy.

If configured via XML, expects the following:

 
   1000
 
 

Requires a "maxNodes" attribute otherwise a ConfigurationException is thrown.

Version:
$Revision: 7168 $
Author:
Daniel Huang (dhuang@jboss.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
FIFOConfiguration()
          Deprecated.  
 
Method Summary
 FIFOConfiguration clone()
          Deprecated.  
 boolean equals(Object obj)
          Deprecated.  
 EvictionAlgorithmConfig modernizeConfig()
          Deprecated.  
 void reset()
          Deprecated. Resets the values to their defaults.
protected  void setEvictionPolicyClassName()
          Deprecated. This method should be overridden by subclass implementers to set the default policy class name for the subclass.
 String toString()
          Deprecated.  
 void validate()
          Deprecated. Requires a positive maxNodes value or ConfigurationException is thrown.
 
Methods inherited from class org.jboss.cache.eviction.EvictionPolicyConfigBase
getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, hashCode, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSeconds
 
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
 

Constructor Detail

FIFOConfiguration

public FIFOConfiguration()
Deprecated. 
Method Detail

modernizeConfig

public EvictionAlgorithmConfig modernizeConfig()
Deprecated. 
Specified by:
modernizeConfig in interface ModernizableConfig

validate

public void validate()
              throws ConfigurationException
Deprecated. 
Requires a positive maxNodes value or ConfigurationException is thrown.

Specified by:
validate in interface EvictionPolicyConfig
Overrides:
validate in class EvictionPolicyConfigBase
Throws:
ConfigurationException - if any values for the configuration properties are invalid

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class EvictionPolicyConfigBase

setEvictionPolicyClassName

protected void setEvictionPolicyClassName()
Deprecated. 
Description copied from class: EvictionPolicyConfigBase
This method should be overridden by subclass implementers to set the default policy class name for the subclass. This will be called when the implementation is constructed, but is also called in EvictionPolicyConfigBase.reset().

Specified by:
setEvictionPolicyClassName in class EvictionPolicyConfigBase

reset

public void reset()
Deprecated. 
Description copied from interface: EvictionPolicyConfig
Resets the values to their defaults.

Specified by:
reset in interface EvictionPolicyConfig
Overrides:
reset in class EvictionPolicyConfigBase

clone

public FIFOConfiguration clone()
                        throws CloneNotSupportedException
Deprecated. 
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class ConfigurationComponent
Throws:
CloneNotSupportedException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.