Package org.hornetq.utils

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


         FutureLatch future = new FutureLatch();

         messageQueue.getExecutor().execute(future);

         boolean ok = future.await(10000);

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


   {
      FutureLatch future = new FutureLatch();

      executor.execute(future);

      boolean ok = future.await(10000);
      return ok;
   }

   public synchronized HandleStatus handle(final MessageReference reference) throws Exception
   {
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

      // Wait for any create objects runnable to complete
      FutureLatch future = new FutureLatch();

      executor.execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         HornetQServerLogger.LOGGER.timedOutWaitingToStopBridge();
      }
View Full Code Here

      FutureLatch future = new FutureLatch();

      executor.execute(future);

      if (!future.await(60000))
      {
         HornetQServerLogger.LOGGER.pageStoreTimeout(address);
      }
   }
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

   {
      FutureLatch future = new FutureLatch();

      executor.execute(future);

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

   public void flushExecutor()
   {
      FutureLatch future = new FutureLatch();
      executor.execute(future);
      if (!future.await(10000))
      {
         server.threadDump("Couldn't flush ClusterManager executor (" + this +
                           ") in 10 seconds, verify your thread pool size");
      }
   }
View Full Code Here

      // Wait for any create objects runnable to complete
      FutureLatch future = new FutureLatch();

      executor.execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         HornetQServerLogger.LOGGER.timedOutWaitingToStopBridge();
      }
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

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.