Package org.infinispan.remoting.responses

Examples of org.infinispan.remoting.responses.DistributionResponseGenerator


      if (configuration.clustering().cacheMode().isDistributed()) {
         if (configuration.unsafe().unreliableReturnValues() && configuration.transaction().transactionMode().isTransactional())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            //distributed non-transactional caches require the response value
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here


   public <T> T construct(Class<T> componentType) {
      if (configuration.getCacheMode().isDistributed()) {
         if (configuration.isUnsafeUnreliableReturnValues())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

      if (configuration.clustering().cacheMode().isDistributed() || configuration.clustering().cacheMode().isReplicated()) {
         if (configuration.unsafe().unreliableReturnValues() && configuration.transaction().transactionMode().isTransactional())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            //distributed non-transactional caches require the response value
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

   public <T> T construct(Class<T> componentType) {
      if (configuration.getCacheMode().isDistributed()) {
         if (configuration.isUnsafeUnreliableReturnValues())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

   public <T> T construct(Class<T> componentType) {
      if (configuration.clustering().cacheMode().isDistributed()) {
         if (configuration.unsafe().unreliableReturnValues())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

public class ResponseGeneratorFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {

   @SuppressWarnings("unchecked")
   public <T> T construct(Class<T> componentType) {
      if (configuration.getCacheMode().isDistributed())
         return (T) new DistributionResponseGenerator();
      else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

      if (configuration.clustering().cacheMode().isDistributed() || configuration.clustering().cacheMode().isReplicated()) {
         if (configuration.unsafe().unreliableReturnValues() && configuration.transaction().transactionMode().isTransactional())
            return (T) new NoReturnValuesDistributionResponseGenerator();
         else
            //distributed non-transactional caches require the response value
            return (T) new DistributionResponseGenerator();
      } else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

public class ResponseGeneratorFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {

   @SuppressWarnings("unchecked")
   public <T> T construct(Class<T> componentType) {
      if (configuration.getCacheMode().isDistributed())
         return (T) new DistributionResponseGenerator();
      else
         return (T) new DefaultResponseGenerator();
   }
View Full Code Here

TOP

Related Classes of org.infinispan.remoting.responses.DistributionResponseGenerator

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.