Package org.jboss.cache.eviction

Examples of org.jboss.cache.eviction.FIFOConfiguration


      EvictionConfig evConfig = c.getEvictionConfig();
      evConfig.setWakeupIntervalSeconds(3);
      evConfig.setDefaultEventQueueSize(20000);
      evConfig.setDefaultEvictionPolicyClass(FIFOPolicy.class.getName());
      List<EvictionRegionConfig> erConfigs = new ArrayList<EvictionRegionConfig>();
      erConfigs.add(createEvictionRegionConfig("/_default_", 2, new FIFOConfiguration()));
      evConfig.setEvictionRegionConfigs(erConfigs);
      doTest(c);
   }
View Full Code Here


         EvictionConfig evConfig = c.getEvictionConfig();
         evConfig.setWakeupIntervalSeconds(3);
         evConfig.setDefaultEventQueueSize(20000);
         evConfig.setDefaultEvictionPolicyClass(FIFOPolicy.class.getName());
         List<EvictionRegionConfig> erConfigs = new ArrayList<EvictionRegionConfig>();
         erConfigs.add(createEvictionRegionConfig("/_default_", 2, new FIFOConfiguration()));
         erConfigs.add(createEvictionRegionConfig("/a/b/c", 2, new MyPolicyConfig()));
         evConfig.setEvictionRegionConfigs(erConfigs);
         doTest(c);
         assert false : "Should throw exception";
      }
View Full Code Here

      c.setEvictionConfig(new EvictionConfig());
      EvictionConfig evConfig = c.getEvictionConfig();
      evConfig.setDefaultEventQueueSize(20000);
      evConfig.setDefaultEvictionPolicyClass(FIFOPolicy.class.getName());
      List<EvictionRegionConfig> erConfigs = new ArrayList<EvictionRegionConfig>();
      erConfigs.add(createEvictionRegionConfig("/_default_", 2, new FIFOConfiguration()));
      evConfig.setEvictionRegionConfigs(erConfigs);
      doTest(c);
   }
View Full Code Here

         c.setEvictionConfig(new EvictionConfig());
         EvictionConfig evConfig = c.getEvictionConfig();
         evConfig.setDefaultEventQueueSize(20000);
         evConfig.setDefaultEvictionPolicyClass(FIFOPolicy.class.getName());
         List<EvictionRegionConfig> erConfigs = new ArrayList<EvictionRegionConfig>();
         erConfigs.add(createEvictionRegionConfig("/_default_", 2, new FIFOConfiguration()));
         erConfigs.add(createEvictionRegionConfig("/a/b/c", 2, new MyPolicyConfig()));
         evConfig.setEvictionRegionConfigs(erConfigs);
         doTest(c);
         assert false : "Should throw exception";
      }
View Full Code Here

   @Override
   protected EvictionPolicyConfigBase getEvictionPolicyConfig()
   {
      startBusyThread();
      FIFOConfiguration cfg = new FIFOConfiguration();
      cfg.setMaxNodes(1);
      return cfg;
   }
View Full Code Here

   public void setUp() throws Exception
   {
      c1 = (CacheSPI) new DefaultCacheFactory().createCache(false);

      // the FIFO policy cfg
      FIFOConfiguration cfg = new FIFOConfiguration();
      cfg.setMaxNodes(1);
      cfg.setMinTimeToLiveSeconds(0);

      // the region configuration
      EvictionRegionConfig regionCfg = new EvictionRegionConfig();
      regionCfg.setRegionFqn(dummy.getParent());
      regionCfg.setRegionName(dummy.getParent().toString());
View Full Code Here

TOP

Related Classes of org.jboss.cache.eviction.FIFOConfiguration

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.