Class LocalMessageConsumer

    • Constructor Detail

      • LocalMessageConsumer

        public LocalMessageConsumer​(FFMQEngine engine,
                                    LocalSession session,
                                    javax.jms.Destination destination,
                                    String messageSelector,
                                    boolean noLocal,
                                    IntegerID consumerId,
                                    String subscriberId)
                             throws javax.jms.JMSException
        Constructor
        Throws:
        javax.jms.JMSException
    • Method Detail

      • getPrefetchSize

        public final int getPrefetchSize()
        Returns:
        the prefetchSize
      • getSettings

        protected final Settings getSettings()
      • initDestination

        protected final void initDestination()
                                      throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • setMessageListener

        public final void setMessageListener​(javax.jms.MessageListener messageListener)
                                      throws javax.jms.JMSException
        Specified by:
        setMessageListener in interface javax.jms.MessageConsumer
        Overrides:
        setMessageListener in class AbstractMessageConsumer
        Throws:
        javax.jms.JMSException
      • isDurable

        public boolean isDurable()
        Test if the consumer is durable
      • getParsedSelector

        public final MessageSelector getParsedSelector()
        Get the parsed message selector for this consumer
        Returns:
        the parsedSelector
      • getReceiveSelector

        public final MessageSelector getReceiveSelector()
        Get the parsed message selector for this consumer to be used when receiving a message from the local queue
        Returns:
        the parsedSelector
      • prefetchMore

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

        public final void restorePrefetchCapacity​(int amount)
                                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • getNoLocal

        public final boolean getNoLocal()
      • getLocalQueue

        public final LocalQueue getLocalQueue()
        Get the local queue associated to this consumer
      • getSubscriberId

        public final String getSubscriberId()
        Returns:
        the subscriberId