org.jboss.cache.config
Interface EvictionPolicyConfig

All Known Implementing Classes:
ElementSizeConfiguration, EvictionPolicyConfigBase, ExpirationConfiguration, FIFOConfiguration, LFUConfiguration, LRUConfiguration, MRUConfiguration, NullEvictionPolicyConfig

public interface EvictionPolicyConfig

This class encapsulates the configuration element for an eviction policy.

In it's most basic form, it is implemented by EvictionPolicyConfigBase, but more specific eviction policies may subclass or re-implement this interface to provide access to more config variables.

Author:
Manik Surtani (manik@jboss.org)

Method Summary
 String getEvictionPolicyClass()
          Gets the class name of the EvictionPolicy implementation this object will configure.
 void reset()
          Resets the values to their defaults.
 void validate()
          Validate the configuration.
 

Method Detail

getEvictionPolicyClass

String getEvictionPolicyClass()
Gets the class name of the EvictionPolicy implementation this object will configure. Used by RegionManager to instantiate the policy.

Returns:
fully qualified class name

validate

void validate()
              throws ConfigurationException
Validate the configuration. Will be called after any configuration properties are set.

Throws:
ConfigurationException - if any values for the configuration properties are invalid

reset

void reset()
Resets the values to their defaults.



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