Package org.infinispan.container

Examples of org.infinispan.container.FIFOSimpleDataContainer


   public <T> T construct(Class<T> componentType) {
      switch (configuration.getEvictionStrategy()) {
         case NONE:
            return (T) new SimpleDataContainer(configuration.getConcurrencyLevel());
         case FIFO:
            return (T) new FIFOSimpleDataContainer(configuration.getConcurrencyLevel());
         case LRU:
            return (T) new LRUSimpleDataContainer(configuration.getConcurrencyLevel());
         default:
            throw new ConfigurationException("Unknown eviction strategy " + configuration.getEvictionStrategy());
      }
View Full Code Here


      switch (configuration.getEvictionStrategy()) {
         case NONE:
         case UNORDERED:
            return (T) new SimpleDataContainer(configuration.getConcurrencyLevel());
         case FIFO:
            return (T) new FIFOSimpleDataContainer(configuration.getConcurrencyLevel());
         case LRU:
            return (T) new LRUSimpleDataContainer(configuration.getConcurrencyLevel());
         default:
            throw new ConfigurationException("Unknown eviction strategy " + configuration.getEvictionStrategy());
      }
View Full Code Here

TOP

Related Classes of org.infinispan.container.FIFOSimpleDataContainer

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.