Class JmsPoolQueueReceiver

java.lang.Object
org.messaginghub.pooled.jms.JmsPoolMessageConsumer
org.messaginghub.pooled.jms.JmsPoolQueueReceiver
All Implemented Interfaces:
AutoCloseable, javax.jms.MessageConsumer, javax.jms.QueueReceiver

public class JmsPoolQueueReceiver extends JmsPoolMessageConsumer implements javax.jms.QueueReceiver, AutoCloseable
A QueueReceiver which was created by JmsPoolSession.
  • Constructor Details

    • JmsPoolQueueReceiver

      public JmsPoolQueueReceiver(JmsPoolSession session, javax.jms.QueueReceiver delegate)
      Wraps the QueueReceiver.
      Parameters:
      session - the pooled session that created this object.
      delegate - the created QueueReceiver to wrap.
  • Method Details

    • getQueue

      public javax.jms.Queue getQueue() throws javax.jms.JMSException
      Specified by:
      getQueue in interface javax.jms.QueueReceiver
      Throws:
      javax.jms.JMSException
    • toString

      public String toString()
      Overrides:
      toString in class JmsPoolMessageConsumer
    • getQueueReceiver

      public javax.jms.QueueReceiver getQueueReceiver() throws javax.jms.JMSException
      Throws:
      javax.jms.JMSException