1 23 package org.objectweb.joram.client.connector; 24 25 import javax.jms.JMSException ; 26 import javax.jms.MessageConsumer ; 27 import javax.jms.Topic ; 28 29 import org.objectweb.util.monolog.api.BasicLevel; 30 31 35 public class OutboundSubscriber extends OutboundConsumer 36 implements javax.jms.TopicSubscriber 37 { 38 39 private Topic topic; 40 41 private boolean noLocal; 42 43 44 47 OutboundSubscriber(Topic topic, 48 boolean noLocal, 49 MessageConsumer consumer, 50 OutboundSession session) { 51 super(consumer, session); 52 this.topic = topic; 53 this.noLocal = noLocal; 54 55 if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) 56 AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, 57 "OutboundSubscriber(" + topic + 58 ", " + noLocal + 59 ", " + consumer + 60 ", " + session + ")"); 61 } 62 63 64 65 public Topic getTopic() throws JMSException { 66 if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) 67 AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, this + " getTopic()"); 68 69 checkValidity(); 70 return topic; 71 } 72 73 74 public boolean getNoLocal() throws JMSException { 75 if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) 76 AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, this + " getNoLocal()"); 77 78 checkValidity(); 79 return noLocal; 80 } 81 } 82 | Popular Tags |