1 18 19 package org.apache.activemq; 20 21 import org.apache.activemq.command.ActiveMQDestination; 22 import org.apache.activemq.command.ConsumerId; 23 24 import javax.jms.JMSException ; 25 import javax.jms.Topic ; 26 import javax.jms.TopicSubscriber ; 27 28 99 100 public class ActiveMQTopicSubscriber extends ActiveMQMessageConsumer implements 101 TopicSubscriber { 102 103 115 protected ActiveMQTopicSubscriber(ActiveMQSession theSession, 116 ConsumerId consumerId, ActiveMQDestination dest, String name, String selector, int prefetch, int maximumPendingMessageCount, 117 boolean noLocalValue, boolean browserValue, boolean asyncDispatch) throws JMSException { 118 super(theSession, consumerId, dest, name, selector, prefetch, maximumPendingMessageCount, noLocalValue, browserValue, asyncDispatch); 119 } 120 121 128 129 public Topic getTopic() throws JMSException { 130 checkClosed(); 131 return (Topic ) super.getDestination(); 132 } 133 134 143 144 public boolean getNoLocal() throws JMSException { 145 checkClosed(); 146 return super.isNoLocal(); 147 } 148 } 149 | Popular Tags |