org.objectweb.joram.client.jms
Class TopicPublisher

java.lang.Object
  extended by org.objectweb.joram.client.jms.MessageProducer
      extended by org.objectweb.joram.client.jms.TopicPublisher
All Implemented Interfaces:
javax.jms.MessageProducer, javax.jms.TopicPublisher

public class TopicPublisher
extends MessageProducer
implements javax.jms.TopicPublisher

Implements the javax.jms.TopicPublisher interface.


Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.MessageProducer
closed, dest, sess
 
Constructor Summary
TopicPublisher(TopicSession sess, Destination topic)
          Constructs a publisher.
 
Method Summary
 javax.jms.Topic getTopic()
          API method.
 void publish(javax.jms.Message message)
          API method.
 void publish(javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
          API method.
 void publish(javax.jms.Topic topic, javax.jms.Message message)
          API method.
 void publish(javax.jms.Topic topic, javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
          API method.
 java.lang.String toString()
          Returns a string view of this receiver.
 
Methods inherited from class org.objectweb.joram.client.jms.MessageProducer
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.MessageProducer
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 

Constructor Detail

TopicPublisher

TopicPublisher(TopicSession sess,
               Destination topic)
         throws javax.jms.JMSException
Constructs a publisher.

Parameters:
sess - The session the publisher belongs to.
topic - The topic the publisher publishs messages on.
Throws:
javax.jms.IllegalStateException - If the connection is broken.
javax.jms.JMSException - If the creation fails for any other reason.
Method Detail

toString

public java.lang.String toString()
Returns a string view of this receiver.

Overrides:
toString in class java.lang.Object

getTopic

public javax.jms.Topic getTopic()
                         throws javax.jms.JMSException
API method.

Specified by:
getTopic in interface javax.jms.TopicPublisher
Throws:
javax.jms.IllegalStateException - If the publisher is closed.
javax.jms.JMSException

publish

public void publish(javax.jms.Message message,
                    int deliveryMode,
                    int priority,
                    long timeToLive)
             throws javax.jms.JMSException
API method.

Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.IllegalStateException - If the publisher is closed, or if the connection is broken.
javax.jms.JMSException - If the request fails for any other reason.

publish

public void publish(javax.jms.Message message)
             throws javax.jms.JMSException
API method.

Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.IllegalStateException - If the publisher is closed, or if the connection is broken.
javax.jms.JMSException - If the request fails for any other reason.

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message message)
             throws javax.jms.JMSException
API method.

Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.IllegalStateException - If the publisher is closed, or if the connection is broken.
javax.jms.JMSException - If the request fails for any other reason.

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message message,
                    int deliveryMode,
                    int priority,
                    long timeToLive)
             throws javax.jms.JMSException
API method.

Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.IllegalStateException - If the publisher is closed, or if the connection is broken.
javax.jms.JMSException - If the request fails for any other reason.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.