Examples of LRUConfiguration


Examples of org.jboss.cache.eviction.LRUConfiguration

         removalTask = new RemovalTimeoutTask("SFSB Removal Thread - " + this.ejbContainer.getObjectName().getCanonicalName());
   }

   protected EvictionPolicyConfig getEvictionPolicyConfig()
   {
      LRUConfiguration epc = new LRUConfiguration();
      // Override the standard policy class
      epc.setEvictionPolicyClass(AbortableLRUPolicy.class.getName());
      epc.setTimeToLiveSeconds((int) cacheConfig.idleTimeoutSeconds());
      epc.setMaxNodes(cacheConfig.maxSize());
      return epc;
   }
View Full Code Here

Examples of org.jboss.cache.eviction.LRUConfiguration

/* 347 */       this.removalTask = new RemovalTimeoutTask("SFSB Removal Thread - " + this.ejbContainer.getObjectName().getCanonicalName());
/*     */   }
/*     */
/*     */   protected EvictionPolicyConfig getEvictionPolicyConfig(int timeToLiveSeconds, int maxNodes)
/*     */   {
/* 352 */     LRUConfiguration epc = new LRUConfiguration();
/*     */
/* 354 */     epc.setEvictionPolicyClass(AbortableLRUPolicy.class.getName());
/* 355 */     epc.setTimeToLiveSeconds(timeToLiveSeconds);
/* 356 */     epc.setMaxNodes(maxNodes);
/* 357 */     return epc;
/*     */   }
View Full Code Here

Examples of org.jboss.cache.eviction.LRUConfiguration

         removalTask = new RemovalTimeoutTask("SFSB Removal Thread - " + this.ejbContainer.getObjectName().getCanonicalName());
   }

   protected EvictionPolicyConfig getEvictionPolicyConfig(int timeToLiveSeconds, int maxNodes)
   {
      LRUConfiguration epc = new LRUConfiguration();
      // Override the standard policy class
      epc.setEvictionPolicyClass(AbortableLRUPolicy.class.getName());
      epc.setTimeToLiveSeconds(timeToLiveSeconds);
      epc.setMaxNodes(maxNodes);
      return epc;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.