Package org.infinispan.configuration.cache

Examples of org.infinispan.configuration.cache.AbstractLoaderConfiguration.purgeOnStartup()


   }

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

   public LinkedHashMap<CacheStore, AbstractLoaderConfiguration> getStores() {
View Full Code Here


      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

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.