1 28 29 package com.caucho.jms.session; 30 31 import javax.jms.JMSException ; 32 import javax.jms.Message ; 33 import javax.jms.Topic ; 34 import javax.jms.TopicPublisher ; 35 36 39 public class TopicPublisherImpl extends MessageProducerImpl 40 implements TopicPublisher { 41 public TopicPublisherImpl(SessionImpl session, Topic topic) 42 { 43 super(session, topic); 44 } 45 46 49 public Topic getTopic() 50 { 51 return (Topic ) super.getDestination(); 52 } 53 54 59 public void publish(Message message) 60 throws JMSException 61 { 62 send(message); 63 } 64 65 73 public void publish(Message message, 74 int deliveryMode, 75 int priority, 76 long timeToLive) 77 throws JMSException 78 { 79 send(message, deliveryMode, priority, timeToLive); 80 } 81 82 88 public void publish(Topic topic, Message message) 89 throws JMSException 90 { 91 send(topic, message); 92 } 93 94 103 public void publish(Topic topic, 104 Message message, 105 int deliveryMode, 106 int priority, 107 long timeToLive) 108 throws JMSException 109 { 110 send(topic, message, deliveryMode, priority, timeToLive); 111 } 112 } 113 114 115 116 | Popular Tags |