Package org.infinispan.executors

Examples of org.infinispan.executors.ExecutorFactory


         setMarshaller((Marshaller) getInstance(marshallerName, classLoader));
      }

      if (asyncExecutorService == null) {
         String asyncExecutorClass = config.getAsyncExecutorFactory();
         ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass, classLoader);
         asyncExecutorService = executorFactory.getExecutor(config.getProperties());
      }

      synchronized (cacheName2RemoteCache) {
         for (RemoteCacheHolder rcc : cacheName2RemoteCache.values()) {
            startRemoteCache(rcc);
View Full Code Here


      String asyncExecutorClass = DefaultAsyncExecutorFactory.class.getName();
      if (props.contains("asyn-executor-factory")) {
         asyncExecutorClass = props.getProperty("asyn-executor-factory");
      }
      ExecutorFactory executorFactory = (ExecutorFactory) VHelper.newInstance(asyncExecutorClass);
      asyncExecutorService = executorFactory.getExecutor(props);


      if (props.get("force-return-value") != null && props.get("force-return-value").equals("true")) {
         forceReturnValueDefault = true;
      }
View Full Code Here

   }

   private ExecutorService buildAndConfigureExecutorService(String factoryName, Properties p, String componentName) throws Exception {
      Properties props = new Properties(p); // defensive copy
      if (p != null && !p.isEmpty()) props.putAll(p);
      ExecutorFactory f = (ExecutorFactory) Util.getInstance(factoryName);
      setComponentName(componentName, props);
      setDefaultThreads(KnownComponentNames.getDefaultThreads(componentName), props);
      setDefaultThreadPrio(KnownComponentNames.getDefaultThreadPrio(componentName), props);
      return f.getExecutor(props);
   }
View Full Code Here

         setMarshaller((Marshaller) getInstance(marshallerName, classLoader));
      }

      if (asyncExecutorService == null) {
         String asyncExecutorClass = config.getAsyncExecutorFactory();
         ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass, classLoader);
         asyncExecutorService = executorFactory.getExecutor(config.getProperties());
      }

      forceReturnValueDefault = config.getForceReturnValues();

      synchronized (cacheName2RemoteCache) {
View Full Code Here

         setMarshaller((Marshaller) getInstance(marshallerName, classLoader));
      }

      if (asyncExecutorService == null) {
         String asyncExecutorClass = config.getAsyncExecutorFactory();
         ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass, classLoader);
         asyncExecutorService = executorFactory.getExecutor(config.getProperties());
      }

      forceReturnValueDefault = config.getForceReturnValues();

      synchronized (cacheName2RemoteCache) {
View Full Code Here

   }

   private ExecutorService buildAndConfigureExecutorService(String factoryName, Properties p, String componentName) throws Exception {
      Properties props = new Properties(p); // defensive copy
      if (p != null && !p.isEmpty()) props.putAll(p);
      ExecutorFactory f = (ExecutorFactory) Util.getInstance(factoryName);
      setComponentName(componentName, props);
      setDefaultThreads(KnownComponentNames.getDefaultThreads(componentName), props);
      setDefaultThreadPrio(KnownComponentNames.getDefaultThreadPrio(componentName), props);
      return f.getExecutor(props);
   }
View Full Code Here

         String marshallerName = config.getMarshaller();
         setMarshaller((Marshaller) getInstance(marshallerName));
      }

      String asyncExecutorClass = config.getAsyncExecutorFactory();
      ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass);
      asyncExecutorService = executorFactory.getExecutor(config.getProperties());

      forceReturnValueDefault = config.getForceReturnValues();

      synchronized (cacheName2RemoteCache) {
         for (RemoteCacheImpl remoteCache : cacheName2RemoteCache.values()) {
View Full Code Here

         throw new ConfigurationException("Unable to instantiate ExecutorFactory for named component " + componentName, e);
      }
   }

   private ExecutorService buildAndConfigureExecutorService(String factoryName, Properties props) throws Exception {
      ExecutorFactory f = (ExecutorFactory) Util.getInstance(factoryName);
      return f.getExecutor(props);
   }
View Full Code Here

         String marshallerName = config.getMarshaller();
         setMarshaller((Marshaller) getInstance(marshallerName));
      }

      String asyncExecutorClass = config.getAsyncExecutorFactory();
      ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass);
      asyncExecutorService = executorFactory.getExecutor(config.getProperties());

      forceReturnValueDefault = config.getForceReturnValues();

      synchronized (cacheName2RemoteCache) {
         for (RemoteCacheImpl remoteCache : cacheName2RemoteCache.values()) {
View Full Code Here

         String marshallerName = config.getMarshaller();
         setMarshaller((Marshaller) getInstance(marshallerName, classLoader));
      }

      String asyncExecutorClass = config.getAsyncExecutorFactory();
      ExecutorFactory executorFactory = (ExecutorFactory) getInstance(asyncExecutorClass, classLoader);
      asyncExecutorService = executorFactory.getExecutor(config.getProperties());

      forceReturnValueDefault = config.getForceReturnValues();

      synchronized (cacheName2RemoteCache) {
         for (RemoteCacheImpl remoteCache : cacheName2RemoteCache.values()) {
View Full Code Here

TOP

Related Classes of org.infinispan.executors.ExecutorFactory

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.