Package org.hornetq.utils

Examples of org.hornetq.utils.FutureLatch.await()


   {
      FutureLatch future = new FutureLatch();

      executor.execute(future);

      while (!future.await(10000))
      {
         HornetQLogger.LOGGER.timedOutStoppingPagingCursor(future, executor);
      }
   }
View Full Code Here


   {
      FutureLatch future = new FutureLatch();

      getExecutor().execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         HornetQLogger.LOGGER.errorFlushingExecutorsOnQueue();
      }
View Full Code Here

         FutureLatch future = new FutureLatch();

         messageQueue.getExecutor().execute(future);

         boolean ok = future.await(10000);

         if (!ok)
         {
            HornetQLogger.LOGGER.errorTransferringConsumer();
         }
View Full Code Here

            interruptThreads.add(thread);
         }
      }

      //wait for all the consumers to complete any onmessage calls
      boolean stuckThreads = !future.await(factory.getCallTimeout());
      //if any are stuck then we need to interrupt them
      if (stuckThreads)
      {
         for (Thread interruptThread : interruptThreads)
         {
View Full Code Here

      org.hornetq.utils.FutureLatch future = new FutureLatch();

      sessionExecutor.execute(future);

      boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS);

      if (!ok)
      {
         HornetQLogger.LOGGER.timeOutWaitingForProcessing();
      }
View Full Code Here

      org.hornetq.utils.FutureLatch future = new FutureLatch();

      sessionExecutor.execute(future);

      boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS);

      if (!ok)
      {
         HornetQClientLogger.LOGGER.timeOutWaitingForProcessing();
      }
View Full Code Here

   public void flushExecutor()
   {
      FutureLatch future = new FutureLatch();
      executor.execute(future);
      if (!future.await(10000))
      {
         server.threadDump("Couldn't finish executor on " + this);
      }
   }
View Full Code Here

   {
      FutureLatch future = new FutureLatch();

      getExecutor().execute(future);

      boolean result = future.await(timeout);

      if (!result)
      {
         HornetQServerLogger.LOGGER.queueBusy(this.name.toString(), timeout);
      }
View Full Code Here

   {
      FutureLatch future = new FutureLatch();

      executor.execute(future);

      while (!future.await(10000))
      {
         HornetQServerLogger.LOGGER.timedOutStoppingPagingCursor(future, executor);
      }
   }
View Full Code Here

   public void flushExecutors()
   {
      FutureLatch future = new FutureLatch();
      executor.execute(future);
      while (!future.await(1000))
      {
         HornetQServerLogger.LOGGER.timedOutFlushingExecutorsPagingCursor(this);
      }
   }
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.