Package org.hornetq.utils

Examples of org.hornetq.utils.Future


      flushExecutor();
   }

   public boolean flushExecutor()
   {
      Future future = new Future();

      getExecutor().execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         log.warn("Couldn't finish waiting executors. Try increasing the thread pool size", new Exception ("trace"));
      }
View Full Code Here


   }

   public void flushExecutor()
   {
      // Wait for any create objects runnable to complete
      Future future = new Future();

      executor.execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         BridgeImpl.log.warn("Timed out waiting to stop");
      }
View Full Code Here

      {
         // If called from inside onMessage then return immediately - otherwise would block
         return;
      }

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

      sessionExecutor.execute(future);

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

      if (!ok)
      {
         ClientConsumerImpl.log.warn("Executor couldn't finish its operation before timeout : " + sessionExecutor.toString());
         ClientConsumerImpl.log.warn("Timed out waiting for handler to complete processing", new Exception ("trace"));
View Full Code Here

   public void flushExecutors()
   {
      cursorProvider.flushExecutors();

      Future future = new Future();

      executor.execute(future);

      if (!future.await(60000))
      {
         PagingStoreImpl.log.warn("Timed out on waiting PagingStore " + address + " to shutdown");
      }
   }
View Full Code Here

      clearClusterConnections();
   }

   public void flushExecutor()
   {
      Future future = new Future();
      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

      assertRefListsIdenticalRefs(refs, list);
   }
  
   private void awaitExecution()
   {
      Future future = new Future();
     
      executor.execute(future);
     
      future.await(10000);
   }
View Full Code Here

    */
   public synchronized void forceDelivery(final long sequence)
   {
      promptDelivery();

      Future future = new Future();

      executor.execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         log.warn("Timed out waiting for executor");
      }
View Full Code Here

      {
         // And we must wait for any force delivery to be executed - this is executed async so we add a future to the
         // executor and
         // wait for it to complete

         Future future = new Future();

         executor.execute(future);

         boolean ok = future.await(10000);

         if (!ok)
         {
            log.warn("Timed out waiting for executor to complete");
         }
View Full Code Here

    */
   public synchronized void forceDelivery(final long sequence)
   {
      promptDelivery();

      Future future = new Future();

      messageQueue.getExecutor().execute(future);

      boolean ok = future.await(10000);

      if (!ok)
      {
         log.warn("Timed out waiting for executor");
      }
View Full Code Here

      {
         // And we must wait for any force delivery to be executed - this is executed async so we add a future to the
         // executor and
         // wait for it to complete

         Future future = new Future();

         messageQueue.getExecutor().execute(future);

         boolean ok = future.await(10000);

         if (!ok)
         {
            log.warn("Timed out waiting for executor to complete");
         }
View Full Code Here

TOP

Related Classes of org.hornetq.utils.Future

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.