Class LocalSession

    • Method Detail

      • setNotificationProxy

        public final void setNotificationProxy​(NotificationProxy notificationProxy)
        Parameters:
        notificationProxy - the notificationProxy to set
      • getNotificationProxy

        public final NotificationProxy getNotificationProxy()
        Returns:
        the notificationProxy
      • dispatch

        public final void dispatch​(AbstractMessage message)
                            throws javax.jms.JMSException
        Called from producers when sending a message
        Parameters:
        message - message to dispatch
        Throws:
        javax.jms.JMSException
      • commit

        public final void commit()
                          throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • commit

        public final void commit​(boolean commitGets,
                                 List<String> deliveredMessageIDs)
                          throws javax.jms.JMSException
        Commit pending put/get operations in this session
        Parameters:
        commitGets -
        deliveredMessageIDs -
        Throws:
        javax.jms.JMSException
      • rollback

        public final void rollback()
                            throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • rollback

        public final void rollback​(boolean rollbackGets,
                                   List<String> deliveredMessageIDs)
                            throws javax.jms.JMSException
        Rollback pending put/get operations in this session
        Parameters:
        rollbackGets -
        deliveredMessageIDs -
        Throws:
        javax.jms.JMSException
      • rollbackUndelivered

        public final void rollbackUndelivered​(List<String> undeliveredMessageIDs)
                                       throws javax.jms.JMSException
        Rollback undelivered get operations in this session
        Parameters:
        undeliveredMessageIDs -
        Throws:
        javax.jms.JMSException
      • getTransactionSet

        protected final TransactionSet getTransactionSet()
        Returns:
        the transactionSet
      • createBrowser

        public javax.jms.QueueBrowser createBrowser​(javax.jms.Queue queueRef,
                                                    String messageSelector)
                                             throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createBrowser

        public javax.jms.QueueBrowser createBrowser​(IntegerID browserId,
                                                    javax.jms.Queue queueRef,
                                                    String messageSelector)
                                             throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createConsumer

        public javax.jms.MessageConsumer createConsumer​(javax.jms.Destination destination,
                                                        String messageSelector,
                                                        boolean noLocal)
                                                 throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createConsumer

        public javax.jms.MessageConsumer createConsumer​(IntegerID consumerId,
                                                        javax.jms.Destination destination,
                                                        String messageSelector,
                                                        boolean noLocal)
                                                 throws javax.jms.JMSException
        Create a consumer with the given id
        Throws:
        javax.jms.JMSException
      • createDurableSubscriber

        public javax.jms.TopicSubscriber createDurableSubscriber​(javax.jms.Topic topic,
                                                                 String subscriptionName,
                                                                 String messageSelector,
                                                                 boolean noLocal)
                                                          throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createDurableSubscriber

        public javax.jms.TopicSubscriber createDurableSubscriber​(IntegerID consumerId,
                                                                 javax.jms.Topic topic,
                                                                 String subscriptionName,
                                                                 String messageSelector,
                                                                 boolean noLocal)
                                                          throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createProducer

        public javax.jms.MessageProducer createProducer​(javax.jms.Destination destination)
                                                 throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • recover

        public final void recover()
                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • recover

        public final void recover​(List<String> deliveredMessageIDs)
                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
        See Also:
        rollback(boolean, List)
      • unsubscribe

        public void unsubscribe​(String subscriptionName)
                         throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createTemporaryQueue

        public javax.jms.TemporaryQueue createTemporaryQueue()
                                                      throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createTemporaryTopic

        public javax.jms.TemporaryTopic createTemporaryTopic()
                                                      throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • acknowledge

        public final void acknowledge()
                               throws javax.jms.JMSException
        Description copied from class: AbstractSession
        Acknowledge the given message
        Specified by:
        acknowledge in class AbstractSession
        Throws:
        javax.jms.JMSException
      • acknowledge

        public final void acknowledge​(List<String> deliveredMessageIDs)
                               throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
        See Also:
        commit(boolean,List)
      • deleteQueue

        protected final void deleteQueue​(String queueName)
                                  throws javax.jms.JMSException
        Delete a queue
        Parameters:
        queueName -
        Throws:
        javax.jms.JMSException
      • getProducedCount

        public final long getProducedCount()
        Get the number of messages actually produced by this session
        Returns:
        the number of messages actually produced by this session
      • getConsumedCount

        public final long getConsumedCount()
        Get the number of messages actually consumed by this session
        Returns:
        the number of messages actually consumed by this session