Package org.jboss.util

Examples of org.jboss.util.LRUCachePolicy$LRUList


   {
      CachePolicy policy = null;
      if (policyClass == TimedCachePolicy.class)
         policy = new TimedCachePolicy(lifetime, true, resolution);
      else if (policyClass == LRUCachePolicy.class)
         policy = new LRUCachePolicy(min, max);
      else
      {
         try
         {
            policy = policyClass.newInstance();
View Full Code Here


      this.max = max;
   }

   public CachePolicy createCachePolicy()
   {
      return new LRUCachePolicy(min, max);
   }
View Full Code Here

   {
      CachePolicy policy = null;
      if (policyClass == TimedCachePolicy.class)
         policy = new TimedCachePolicy(lifetime, true, resolution);
      else if (policyClass == LRUCachePolicy.class)
         policy = new LRUCachePolicy(min, max);
      else
      {
         try
         {
            policy = policyClass.newInstance();
View Full Code Here

      if (min == null || max == null)
         throw new IllegalArgumentException("Missing min (" + min + ") or max (" + max + ").");

      log.debug("Creating LRU cache policy, min: " + min + ", max: " + max);

      return new LRUCachePolicy(min, max);
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.LRUCachePolicy$LRUList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.