Examples of executeBlocking()


Examples of io.vertx.core.impl.VertxInternal.executeBlocking()

    fail("Can't find deployment for verticleName: " + verticleName + " on node " + pos);
  }

  protected void kill(int pos) {
    VertxInternal v = (VertxInternal)vertices[pos];
    v.executeBlocking(() -> {
      v.simulateKill();
      return null;
    }, ar -> {
      assertTrue(ar.succeeded());
    });
View Full Code Here

Examples of org.jboss.as.threads.ManagedQueueExecutorService.executeBlocking()

    ManagedQueueExecutorService managedQueueExecutorService = managedQueueInjector.getValue();
   
    try {
     
      managedQueueExecutorService.executeBlocking(runnable);
      return true;
     
    } catch (InterruptedException e) {
      // the the acquisition thread is interrupted, this probably means the app server is turning the lights off -> ignore         
    } catch (Exception e) {     
View Full Code Here

Examples of org.jboss.as.threads.ManagedQueueExecutorService.executeBlocking()

    boolean rejected = false;
    try {
     
      // wait for 2 seconds for the job to be accepted by the pool.
      managedQueueExecutorService.executeBlocking(runnable, 2, TimeUnit.SECONDS);
     
    } catch (InterruptedException e) {
      // the acquisition thread is interrupted, this probably means the app server is turning the lights off -> ignore         
    } catch (ExecutionTimedOutException e) {
      rejected = true;
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         BlockingExecutor executor = getExecutor(work);

         if (startTimeout == WorkManager.INDEFINITE)
         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }

         completedLatch.await();
      }
      catch (ExecutionTimedOutException etoe)
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         BlockingExecutor executor = getExecutor(work);

         if (startTimeout == WorkManager.INDEFINITE)
         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }

         startedLatch.await();

         return System.currentTimeMillis() - started;
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         BlockingExecutor executor = getExecutor(work);

         if (startTimeout == WorkManager.INDEFINITE)
         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }
      }
      catch (ExecutionTimedOutException etoe)
      {
         exception = new WorkRejectedException(etoe);
View Full Code Here

Examples of org.jboss.threads.BlockingExecutor.executeBlocking()

         BlockingExecutor executor = getExecutor(work);

         if (startTimeout == WorkManager.INDEFINITE)
         {
            executor.executeBlocking(wrapper);
         }
         else
         {
            executor.executeBlocking(wrapper, startTimeout, TimeUnit.MILLISECONDS);
         }
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.