Class JmsConnectionConsumer

  • All Implemented Interfaces:
    javax.jms.ConnectionConsumer, JmsMessageDispatcher

    public class JmsConnectionConsumer
    extends Object
    implements javax.jms.ConnectionConsumer, JmsMessageDispatcher
    JMS Connection Consumer implementation.
    • Constructor Detail

      • JmsConnectionConsumer

        public JmsConnectionConsumer​(JmsConnection connection,
                                     JmsConsumerInfo consumerInfo,
                                     MessageQueue messageQueue,
                                     javax.jms.ServerSessionPool sessionPool)
                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • init

        public JmsConnectionConsumer init()
                                   throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • close

        public void close()
                   throws javax.jms.JMSException
        Specified by:
        close in interface javax.jms.ConnectionConsumer
        Throws:
        javax.jms.JMSException
      • doClose

        protected void doClose()
                        throws javax.jms.JMSException
        Called to initiate shutdown of consumer resources and request that the remote peer remove the registered producer.
        Throws:
        javax.jms.JMSException - if an error occurs during the consumer close operation.
      • shutdown

        protected void shutdown()
                         throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • shutdown

        protected void shutdown​(Throwable cause)
                         throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • start

        public void start()
      • stop

        public void stop()
      • getServerSessionPool

        public javax.jms.ServerSessionPool getServerSessionPool()
                                                         throws javax.jms.JMSException
        Specified by:
        getServerSessionPool in interface javax.jms.ConnectionConsumer
        Throws:
        javax.jms.JMSException
      • checkClosed

        protected void checkClosed()
                            throws javax.jms.IllegalStateException
        Throws:
        javax.jms.IllegalStateException