Class WmQueueBrowserImpl

    • Constructor Detail

      • WmQueueBrowserImpl

        protected WmQueueBrowserImpl​(WmSessionImpl session,
                                     WmQueueImpl queue)
                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • WmQueueBrowserImpl

        protected WmQueueBrowserImpl​(WmSessionImpl session,
                                     WmQueueImpl queue,
                                     java.lang.String selector)
                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • WmQueueBrowserImpl

        protected WmQueueBrowserImpl​(WmSessionImpl session)
    • Method Detail

      • getQueue

        public javax.jms.Queue getQueue()
                                 throws javax.jms.JMSException
        Gets the queue associated with this queue browser.
        Specified by:
        getQueue in interface javax.jms.QueueBrowser
        Specified by:
        getQueue in interface javax.jms.QueueReceiver
        Overrides:
        getQueue in class WmQueueReceiverImpl
        Returns:
        the queue
        Throws:
        javax.jms.JMSException - if the JMS provider fails to get the queue associated with this browser due to some internal error.
      • getMessageSelector

        public java.lang.String getMessageSelector()
                                            throws javax.jms.JMSException
        Gets this queue browser's message selector expression.
        Specified by:
        getMessageSelector in interface javax.jms.MessageConsumer
        Specified by:
        getMessageSelector in interface javax.jms.QueueBrowser
        Overrides:
        getMessageSelector in class WmMessageConsumerImpl
        Returns:
        this queue browser's message selector, or null if no message selector exists for the message consumer (that is, if the message selector was not set or was set to null or the empty string)
        Throws:
        javax.jms.JMSException - if the JMS provider fails to get the message selector for this browser due to some internal error.
      • getEnumeration

        public java.util.Enumeration<WmMessageImpl> getEnumeration()
                                                            throws javax.jms.JMSException
        Gets an enumeration for browsing the current queue messages in the order they would be received.
        Specified by:
        getEnumeration in interface javax.jms.QueueBrowser
        Returns:
        an enumeration for browsing the messages
        Throws:
        javax.jms.JMSException - if the JMS provider fails to get the enumeration for this browser due to some internal error.
      • begin

        public int begin()
                  throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • end

        public void end​(int browseID)
                 throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • browse

        public WmMessageImpl browse​(int browseID)
                             throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • isClosed

        public boolean isClosed()