Package org.infinispan.config

Examples of org.infinispan.config.FluentConfiguration.clustering()


               .invalidationThreshold(config.clustering().l1().invalidationThreshold())
               .lifespan(config.clustering().l1().lifespan())
               .onRehash(config.clustering().l1().onRehash())
               .cleanupTaskFrequency(config.clustering().l1().cleanupTaskFrequency());
      } else {
         legacy.clustering()
            .l1()
               .disable()
               .onRehash(config.clustering().l1().onRehash());
      }
View Full Code Here


               .disable()
               .onRehash(config.clustering().l1().onRehash());
      }

      // We have only defined the chunkSize in the legacy stateRetrieval config, but we are using it in distributed mode as well
      legacy.clustering()
         .stateRetrieval()
            .chunkSize(config.clustering().stateTransfer().chunkSize());

      if (config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
View Full Code Here

      legacy.clustering()
         .stateRetrieval()
            .chunkSize(config.clustering().stateTransfer().chunkSize());

      if (config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .sync()
               .replTimeout(config.clustering().sync().replTimeout());
      }

      for (InterceptorConfiguration interceptor : config.customInterceptors().interceptors()) {
View Full Code Here

      if (config == null)
         return null;
     
      FluentConfiguration legacy = new Configuration().fluent();
     
      legacy.clustering()
         .mode(CacheMode.valueOf(config.clustering().cacheMode().name()));
     
      if (!config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .async()
View Full Code Here

     
      legacy.clustering()
         .mode(CacheMode.valueOf(config.clustering().cacheMode().name()));
     
      if (!config.clustering().cacheMode().isSynchronous()) {
         legacy.clustering()
            .async()
               .asyncMarshalling(config.clustering().async().asyncMarshalling())
               .replQueueClass(config.clustering().async().replQueue().getClass())
               .replQueueInterval(config.clustering().async().replQueueInterval())
               .replQueueMaxElements(config.clustering().async().replQueueMaxElements())
View Full Code Here

               .replQueueMaxElements(config.clustering().async().replQueueMaxElements())
               .useReplQueue(config.clustering().async().useReplQueue());
      }
     
      if (config.clustering().hash().consistentHash() != null) {
         legacy.clustering()
            .hash()
               .consistentHashClass(config.clustering().hash().consistentHash().getClass());
     
      }
      if (config.clustering().hash().hash() != null) {
View Full Code Here

            .hash()
               .consistentHashClass(config.clustering().hash().consistentHash().getClass());
     
      }
      if (config.clustering().hash().hash() != null) {
         legacy.clustering()
            .hash()
               .hashFunctionClass(config.clustering().hash().hash().getClass());
      }
      legacy.clustering()
      .hash()
View Full Code Here

      if (config.clustering().hash().hash() != null) {
         legacy.clustering()
            .hash()
               .hashFunctionClass(config.clustering().hash().hash().getClass());
      }
      legacy.clustering()
      .hash()
            .numOwners(config.clustering().hash().numOwners())
            .numVirtualNodes(config.clustering().hash().numVirtualNodes())
            .rehashEnabled(config.clustering().hash().rehashEnabled())
            .rehashRpcTimeout(config.clustering().hash().rehashRpcTimeout())
View Full Code Here

            .groups()
               .enabled(config.clustering().hash().groups().enabled())
               .groupers(config.clustering().hash().groups().groupers());
     
      if (config.clustering().l1().enabled()) {
         legacy.clustering()
            .l1()
               .invalidationThreshold(config.clustering().l1().invalidationThreshold())
               .lifespan(config.clustering().l1().lifespan())
               .onRehash(config.clustering().l1().onRehash());
      } else {
View Full Code Here

            .l1()
               .invalidationThreshold(config.clustering().l1().invalidationThreshold())
               .lifespan(config.clustering().l1().lifespan())
               .onRehash(config.clustering().l1().onRehash());
      } else {
         legacy.clustering()
            .l1()
               .disable()
               .onRehash(false);
      }
     
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.