Package org.infinispan.configuration.cache

Examples of org.infinispan.configuration.cache.AbstractLoaderConfiguration


      if (loader instanceof CacheStore) stores.put((CacheStore) loader, config);
   }

   public void purgeIfNecessary() throws CacheLoaderException {
      for (Map.Entry<CacheStore, AbstractLoaderConfiguration> e : stores.entrySet()) {
         AbstractLoaderConfiguration value = e.getValue();
         if (value.purgeOnStartup())
            e.getKey().clear();
      }
   }
View Full Code Here


      CacheStore cs = getCacheStore();
      if (cs != null) {
         if ((cs instanceof ChainingCacheStore) && !force) {
            ((ChainingCacheStore) loader).purgeIfNecessary();
         } else {
            AbstractLoaderConfiguration first = clmConfig.cacheLoaders().get(0);
            if (force || (first != null && first.purgeOnStartup())) {
               cs.clear();
            }
         }
      }
   }
View Full Code Here

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
            ccl.addCacheLoader(l, cfg);
         }
      } else {
         if (!clmConfig.cacheLoaders().isEmpty()) {
            AbstractLoaderConfiguration cfg = clmConfig.cacheLoaders().get(0);
            tmpLoader = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
            if (cfg instanceof CacheStoreConfig)
            assertNotSingletonAndShared(cfg);
         } else {
            return null;
View Full Code Here

TOP

Related Classes of org.infinispan.configuration.cache.AbstractLoaderConfiguration

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.