Package org.mule.util.queue

Examples of org.mule.util.queue.Queue.take()


      throw new MessagingException("Channel is closed");
    }
    try {
      QueueSession qs = container.getQueueSession();
      Queue queue = qs.getQueue(componentName);
      MessageExchange me = (MessageExchange) queue.take();
      if (me != null) {
        handleReceive(me);
      }
      return me;
    } catch (InterruptedException e) {
View Full Code Here


                    for (int j = 0; j < INNERLOOP; j++) {
                        byte[] o = new byte[(rnd.nextInt(16) + 1) * OBJSIZE];
                        q.put(o);
                    }
                    while (q.size() > 0) {
                        q.take();
                    }
                }
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
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.