Package org.hornetq.api.core

Examples of org.hornetq.api.core.HornetQInterruptedException


                  {
                     if (JMSBridgeImpl.trace)
                     {
                        HornetQJMSServerLogger.LOGGER.trace(this + " thread was interrupted");
                     }
                     throw new HornetQInterruptedException(e);
                  }

               }
            }
         }
View Full Code Here


               {
                  failoverCondition.await(10000, TimeUnit.MILLISECONDS);
               }
               catch (InterruptedException e)
               {
                  throw new HornetQInterruptedException(e);
               }
            }

            // Sanity check
            if (transferring)
View Full Code Here

                     }
                  }
               }
               catch (InterruptedException e)
               {
                  throw new HornetQInterruptedException(e);
               }
            }

            response = null;

            if (resendCache != null && packet.isRequiresConfirmations())
            {
               resendCache.add(packet);
            }

            connection.getTransportConnection().write(buffer, false, false);

            long toWait = connection.getBlockingCallTimeout();

            long start = System.currentTimeMillis();

            while (!closed && (response == null || (response.getType() != PacketImpl.EXCEPTION &&
               response.getType() != expectedPacket)) && toWait > 0)
            {
               try
               {
                  sendCondition.await(toWait, TimeUnit.MILLISECONDS);
               }
               catch (InterruptedException e)
               {
                  throw new HornetQInterruptedException(e);
               }

               if (response != null && response.getType() != PacketImpl.EXCEPTION && response.getType() != expectedPacket)
               {
                  HornetQClientLogger.LOGGER.packetOutOfOrder(response, new Exception ("trace"));
View Full Code Here

                  {
                     wait(toWait);
                  }
                  catch (InterruptedException e)
                  {
                     throw new HornetQInterruptedException(e);
                  }

                  if (m != null || closed)
                  {
                     break;
View Full Code Here

         {
            latch.await(10, TimeUnit.SECONDS);
         }
         catch (InterruptedException e)
         {
            throw new HornetQInterruptedException(e);
         }
      }
   }
View Full Code Here

            {
               join();
            }
            catch (InterruptedException e)
            {
               throw new HornetQInterruptedException(e);
            }
         }
      }
View Full Code Here

                  {
                     lock.wait(500);
                  }
                  catch (InterruptedException e)
                  {
                     throw new HornetQInterruptedException(e);
                  }
                  continue;
               }

               Message msg = null;
               try
               {
                  msg = sourceConsumer.receive(1000);

                  if (msg instanceof HornetQMessage)
                  {
                     // We need to check the buffer mainly in the case of LargeMessages
                     // As we need to reconstruct the buffer before resending the message
                     ((HornetQMessage)msg).checkBuffer();
                  }
               }
               catch (JMSException jmse)
               {
                  if (JMSBridgeImpl.trace)
                  {
                     HornetQJMSServerLogger.LOGGER.trace(this + " exception while receiving a message", jmse);
                  }
               }

               if (msg == null)
               {
                  try
                  {
                     lock.wait(500);
                  }
                  catch (InterruptedException e)
                  {
                     if (JMSBridgeImpl.trace)
                     {
                        HornetQJMSServerLogger.LOGGER.trace(this + " thread was interrupted");
                     }
                     throw new HornetQInterruptedException(e);
                  }
                  continue;
               }

               if (JMSBridgeImpl.trace)
View Full Code Here

                  {
                     if (JMSBridgeImpl.trace)
                     {
                        HornetQJMSServerLogger.LOGGER.trace(this + " thread was interrupted");
                     }
                     throw new HornetQInterruptedException(e);
                  }

               }
            }
         }
View Full Code Here

                     {
                        exitLockLatch.await(500, TimeUnit.MILLISECONDS);
                     }
                     catch (InterruptedException e1)
                     {
                        throw new HornetQInterruptedException(e1);
                     }
                  }
               }

               // Now we absolutely know that no threads are executing in or blocked in
View Full Code Here

                  if (waitLatch.await(interval, TimeUnit.MILLISECONDS))
                     return;
                  }
                  catch (InterruptedException ignore)
                  {
                     throw new HornetQInterruptedException(e);
                  }

                  // Exponential back-off
                  long newInterval = (long)(interval * retryIntervalMultiplier);

 
View Full Code Here

TOP

Related Classes of org.hornetq.api.core.HornetQInterruptedException

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.