Package org.hornetq.api.core

Examples of org.hornetq.api.core.HornetQInterruptedException


      {
         spinLimiter.acquire();
      }
      catch (InterruptedException e)
      {
         throw new HornetQInterruptedException(e);
      }

      timerRunnable = new CheckTimer();

      timerThread = new Thread(timerRunnable, "hornetq-buffer-timeout");
View Full Code Here


         {
            timerThread.join();
         }
         catch (InterruptedException e)
         {
            throw new HornetQInterruptedException(e);
         }
      }

      started = false;
   }
View Full Code Here

            // when the buffer is inactive
            spinLimiter.acquire();
         }
         catch (InterruptedException e)
         {
            throw new HornetQInterruptedException(e);
         }

         spinning = false;
      }
   }
View Full Code Here

               spinLimiter.release();
            }
            catch (InterruptedException e)
            {
               throw new HornetQInterruptedException(e);
            }
         }
      }
View Full Code Here

            {
               sleep(sleepMillis, sleepNanos);
            }
            catch (InterruptedException e)
            {
               throw new HornetQInterruptedException(e);
            }
            catch (Exception e)
            {
               setUseSleep(false);
               HornetQJournalLogger.LOGGER.warn(e.getMessage() + ", disabling sleep on TimedBuffer, using spin now", 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

                  {
                     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

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.