DummyEvictionPolicy.java :  » JBoss » JBossCache » org » jboss » cache » eviction » Java Open Source

Java Open Source » JBoss » JBossCache 
JBossCache » org » jboss » cache » eviction » DummyEvictionPolicy.java
package org.jboss.cache.eviction;

import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
import org.jboss.cache.config.EvictionPolicyConfig;

/**
 * @author Ben Feb 13, 2004
 */
public class DummyEvictionPolicy extends BaseEvictionPolicy
{
   public void evict(Fqn fqn) throws Exception
   {
      // no-op
//      throw new RuntimeException("Testing only");
   }

   public int getWakeupIntervalSeconds()
   {
      return 0;  //To change body of implemented methods use File | Settings | File Templates.
   }

   public void setCache(CacheSPI cache)
   {
      // no op
   }

   public EvictionAlgorithm getEvictionAlgorithm()
   {
      // no op
      return null;
   }

   public Class<? extends EvictionPolicyConfig> getEvictionConfigurationClass()
   {
      return null;
   }


}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.