Package org.infinispan.config

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


               .disable()
               .onRehash(false);
      }

      // 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

               .replQueueInterval(config.clustering().async().replQueueInterval())
               .replQueueMaxElements(config.clustering().async().replQueueMaxElements());
      }
     
      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().isRehashEnabled())
            .rehashRpcTimeout(config.clustering().hash().rehashRpcTimeout())
View Full Code Here

            .groups()
               .enabled(config.clustering().hash().groupsConfiguration().enabled())
               .groupers(config.clustering().hash().groupsConfiguration().groupers());
     
      if (config.clustering().l1().isEnabled()) {
         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();
      }
     
      legacy.clustering()
View Full Code Here

         legacy.clustering()
            .l1()
               .disable();
      }
     
      legacy.clustering()
         .stateRetrieval()
            .alwaysProvideInMemoryState(config.clustering().stateRetrieval().alwaysProvideInMemoryState())
            .fetchInMemoryState(config.clustering().stateRetrieval().fetchInMemoryState())
            .initialRetryWaitTime(config.clustering().stateRetrieval().initialRetryWaitTime())
            .logFlushTimeout(config.clustering().stateRetrieval().logFlushTimeout())
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.