Package org.jboss.cache.eviction

Examples of org.jboss.cache.eviction.DummyEvictionConfiguration


      cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
      cache.getConfiguration().setCacheMode("LOCAL");
      EvictionConfig ec = new EvictionConfig();

      List<EvictionRegionConfig> ercs = new LinkedList<EvictionRegionConfig>();
      ercs.add(new EvictionRegionConfig(Fqn.ROOT, new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/a/b/c"), new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/a/b/c/d"), new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/a/b"), new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/d/e/f"), new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/d/e/g"), new DummyEvictionConfiguration()));
      ercs.add(new EvictionRegionConfig(Fqn.fromString("/d/e"), new DummyEvictionConfiguration()));

      ec.setEvictionRegionConfigs(ercs);
      cache.getConfiguration().setEvictionConfig(ec);
      cache.start();
View Full Code Here

TOP

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

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.