Examples of WithinThreadExecutor


Examples of org.infinispan.util.concurrent.WithinThreadExecutor

      this.asyncProcessor = executor;
   }

   @Start
   public void start() {
      syncProcessor = new WithinThreadExecutor();
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.WithinThreadExecutor

      EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createLocalCacheManager(false);
      DistributedExecutorService des = null;
      try {
         Cache<Object, Object> cache = cacheManager.getCache();

         ExecutorService service = new WithinThreadExecutor();
         service.shutdown();

         des = new DefaultExecutorService(cache, service);
      } finally {
         TestingUtil.killCacheManagers(cacheManager);
      }
View Full Code Here

Examples of org.infinispan.util.concurrent.WithinThreadExecutor

      EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createClusteredCacheManager(config);
      DistributedExecutorService des = null;
      try {
         Cache<Object, Object> cache = cacheManager.getCache();

         ExecutorService service = new WithinThreadExecutor();
         des = new DefaultExecutorService(cache, service);

         Future<Integer> future = des.submit(new SimpleCallable());
         Integer r = future.get();
         assert r == 1;
View Full Code Here

Examples of org.infinispan.util.concurrent.WithinThreadExecutor

      EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createClusteredCacheManager(config);
      DistributedExecutorService des = null;
      ExecutorService service = null;
      try {
         Cache<Object, Object> cache = cacheManager.getCache();
         service = new WithinThreadExecutor();

         des = new DefaultExecutorService(cache, service);

         des.shutdown();
View Full Code Here

Examples of org.infinispan.util.concurrent.WithinThreadExecutor

      EmbeddedCacheManager cacheManager = TestCacheManagerFactory.createClusteredCacheManager(config);
      DistributedExecutorService des = null;
      ExecutorService service = null;
      try {
         Cache<Object, Object> cache = cacheManager.getCache();
         service = new WithinThreadExecutor();

         des = new DefaultExecutorService(cache, service, true);

         des.shutdown();
View Full Code Here

Examples of org.jboss.cache.util.concurrent.WithinThreadExecutor

      replicationProcessor = c.getRuntimeConfig().getAsyncSerializationExecutor();
      if (c.getCacheMode().isSynchronous() ||
            (replicationProcessor == null && c.getSerializationExecutorPoolSize() < 1) || requireSyncMarshalling(c)) // if an executor has not been injected and the pool size is set
      {
         // in-process thread.  Not async.
         replicationProcessor = new WithinThreadExecutor();
         asyncSerial = false;
      }
      else
      {
         asyncSerial = true;
View Full Code Here

Examples of org.jboss.cache.util.concurrent.WithinThreadExecutor

   @Start
   void start()
   {
      useMarshalledValueMaps = config.isUseLazyDeserialization();
      syncProcessor = new WithinThreadExecutor();

      // first try and use an injected executor for async listeners
      if ((asyncProcessor = config.getRuntimeConfig().getAsyncCacheListenerExecutor()) == null)
      {
         // create one if needed
View Full Code Here

Examples of org.jboss.cache.util.concurrent.WithinThreadExecutor

      replicationProcessor = c.getRuntimeConfig().getAsyncSerializationExecutor();
      if (c.getCacheMode().isSynchronous() ||
            (replicationProcessor == null && c.getSerializationExecutorPoolSize() < 1)) // if an executor has not been injected and the pool size is set
      {
         // in-process thread.  Not async.
         replicationProcessor = new WithinThreadExecutor();
         asyncSerial = false;
      }
      else
      {
         asyncSerial = true;
View Full Code Here

Examples of org.jboss.cache.util.concurrent.WithinThreadExecutor

   @Start
   void start()
   {
      useMarshalledValueMaps = config.isUseLazyDeserialization();
      syncProcessor = new WithinThreadExecutor();

      // first try and use an injected executor for async listeners
      if ((asyncProcessor = config.getRuntimeConfig().getAsyncCacheListenerExecutor()) == null)
      {
         // create one if needed
View Full Code Here

Examples of org.jboss.cache.util.concurrent.WithinThreadExecutor

   @Start
   void start()
   {
      useMarshalledValueMaps = config.isUseLazyDeserialization();
      syncProcessor = new WithinThreadExecutor();

      // first try and use an injected executor for async listeners
      if ((asyncProcessor = config.getRuntimeConfig().getAsyncCacheListenerExecutor()) == null)
      {
         // create one if needed
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.