Examples of JdbmCacheStoreConfig


Examples of org.infinispan.loaders.jdbm.JdbmCacheStoreConfig

      }

      // create/set cache loader configuration
      CacheLoaderManagerConfig loaderManagerConfig = new CacheLoaderManagerConfig();
      loaderManagerConfig.setPassivation(true);
      JdbmCacheStoreConfig loaderConfig = new JdbmCacheStoreConfig();
      loaderConfig.setLocation(location);
      loaderManagerConfig.addCacheLoaderConfig(loaderConfig);
      configuration.setCacheLoaderManagerConfig(loaderManagerConfig);
    }
  }
View Full Code Here

Examples of org.infinispan.loaders.jdbm.JdbmCacheStoreConfig

      return location;
   }

   @Override
   public JdbmCacheStoreConfig adapt() {
      JdbmCacheStoreConfig config = new JdbmCacheStoreConfig();

      LegacyConfigurationAdaptor.adapt(this, config);

      config.setComparatorClassName(comparatorClassName);
      config.setExpiryQueueSize(expiryQueueSize);
      config.setLocation(location);

      return config;
   }
View Full Code Here

Examples of org.infinispan.loaders.jdbm.JdbmCacheStoreConfig

      assert store2.location().equals("/tmp/jdbm");
      assert store2.expiryQueueSize() == 100;
      assert store2.fetchPersistentState();
      assert store2.async().enabled();

      JdbmCacheStoreConfig legacy = store.adapt();
      assert legacy.getLocation().equals("/tmp/jdbm");
      assert legacy.getExpiryQueueSize() == 100;
      assert legacy.isFetchPersistentState();
      assert legacy.getAsyncStoreConfig().isEnabled();
   }
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.