Class WmConnectionConsumerImpl

    • Field Detail

      • _destination

        protected javax.jms.Destination _destination
      • _subscriptionName

        protected java.lang.String _subscriptionName
      • _messageSelector

        protected java.lang.String _messageSelector
      • _sessionPool

        protected javax.jms.ServerSessionPool _sessionPool
      • _messages

        protected java.util.List<javax.jms.Message> _messages
      • _maxMessages

        protected int _maxMessages
      • _dispatcher

        protected java.lang.Thread _dispatcher
      • _isTransacted

        protected boolean _isTransacted
      • _closed

        protected boolean _closed
      • _isLocalTransacted

        protected boolean _isLocalTransacted
    • Constructor Detail

      • WmConnectionConsumerImpl

        protected WmConnectionConsumerImpl​(WmConnectionImpl connection,
                                           javax.jms.Destination destination,
                                           java.lang.String messageSelector,
                                           javax.jms.ServerSessionPool sessionPool,
                                           int maxMessages)
                                    throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • WmConnectionConsumerImpl

        protected WmConnectionConsumerImpl​(WmConnectionImpl connection,
                                           javax.jms.Destination destination,
                                           java.lang.String subscriptionName,
                                           java.lang.String messageSelector,
                                           javax.jms.ServerSessionPool sessionPool,
                                           int maxMessages)
                                    throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • getServerSessionPool

        public javax.jms.ServerSessionPool getServerSessionPool()
                                                         throws javax.jms.JMSException
        Gets the server session pool associated with this connection consumer.
        Specified by:
        getServerSessionPool in interface javax.jms.ConnectionConsumer
        Returns:
        the server session pool used by this connection consumer
        Throws:
        javax.jms.JMSException - if the JMS provider fails to get the server session pool associated with this consumer due to some internal error.
      • close

        public void close()
                   throws javax.jms.JMSException
        Closes the connection consumer.

        Since a provider may allocate some resources on behalf of a connection consumer outside the Java virtual machine, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.

        Specified by:
        close in interface javax.jms.ConnectionConsumer
        Throws:
        javax.jms.JMSException - if the JMS provider fails to release resources on behalf of the connection consumer or fails to close the connection consumer.
      • dispatch

        public boolean dispatch()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object