Package org.infinispan.configuration.cache

Examples of org.infinispan.configuration.cache.LoaderConfiguration


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


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

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

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

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

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

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

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

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

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

TOP

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

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.