Examples of LFUAlgorithmConfig


Examples of org.jboss.cache.eviction.LFUAlgorithmConfig

public class LFUMinTTLTest extends MinTTLTestBase
{
   @Override
   protected EvictionAlgorithmConfigBase getEvictionAlgorithmConfig()
   {
      return new LFUAlgorithmConfig();
   }
View Full Code Here

Examples of org.jboss.cache.eviction.LFUAlgorithmConfig

    * Creates a new ExoCache instance with the relevant parameters
    */
   private ExoCache<Serializable, Object> create(ExoCacheConfig config, Cache<Serializable, Object> cache,
      int maxNodes, int minNodes, long minTimeToLive) throws ExoCacheInitException
   {
      final LFUAlgorithmConfig lfu = new LFUAlgorithmConfig(maxNodes, minNodes);
      lfu.setMinTimeToLive(minTimeToLive);
      Fqn<String> rooFqn = addEvictionRegion(config, cache, lfu);
      return new LFUExoCache(config, cache, rooFqn, lfu);
   }
View Full Code Here

Examples of org.jboss.cache.eviction.LFUAlgorithmConfig

public class LFUMinTTLTest extends MinTTLTestBase
{
   @Override
   protected EvictionAlgorithmConfigBase getEvictionAlgorithmConfig()
   {
      return new LFUAlgorithmConfig();
   }
View Full Code Here

Examples of org.jboss.cache.eviction.LFUAlgorithmConfig

    */
   private ExoCache<Serializable, Object> create(ExoCacheConfig config, Cache<Serializable, Object> cache, int maxNodes, int minNodes,
      long minTimeToLive) throws ExoCacheInitException
   {
      final Configuration configuration = cache.getConfiguration();
      final LFUAlgorithmConfig lfu = new LFUAlgorithmConfig(maxNodes, minNodes);
      lfu.setMinTimeToLive(minTimeToLive);
      // Create an eviction region config
      final EvictionRegionConfig erc = new EvictionRegionConfig(Fqn.ROOT, lfu);

      final EvictionConfig evictionConfig = configuration.getEvictionConfig();
      evictionConfig.setDefaultEvictionRegionConfig(erc);
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.