Package org.hornetq.api.core

Examples of org.hornetq.api.core.HornetQInterruptedException


                  {
                     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

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

               long now = System.currentTimeMillis();

               toWait -= now - start;
View Full Code Here

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

               if (latch.await(reaperPeriod, TimeUnit.MILLISECONDS))
                  return;
            }
            catch (InterruptedException e1)
            {
               throw new HornetQInterruptedException(e1);
            }
            if (!isStarted())
               return;

            Map<SimpleString, Binding> nameMap = addressManager.getBindings();
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

                  {
                     if (stopping)
                     {
                        return;
                     }
                     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");
                     }
                     if (stopping)
                     {
                        return;
                     }
                     throw new HornetQInterruptedException(e);
                  }
                  continue;
               }

               if (JMSBridgeImpl.trace)
View Full Code Here

                     }
                     if (stopping)
                     {
                        return;
                     }
                     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

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.