com.silverpeas.notification.jms.access
Class SilverpeasTopicPublisher

java.lang.Object
  extended by com.silverpeas.notification.jms.access.JMSObjectDecorator<javax.jms.TopicPublisher>
      extended by com.silverpeas.notification.jms.access.SilverpeasTopicPublisher
All Implemented Interfaces:
javax.jms.MessageProducer, javax.jms.TopicPublisher

public class SilverpeasTopicPublisher
extends JMSObjectDecorator<javax.jms.TopicPublisher>
implements javax.jms.TopicPublisher

Decorator of a TopicPublisher returned by the JMS system. It adds additional attributes in order to facilitate the JMS sessions management.


Method Summary
 void close()
           
static SilverpeasTopicPublisher decorateTopicPublisher(javax.jms.TopicPublisher publisher)
          Decorates the specified JMS topic publisher.
 int getDeliveryMode()
           
 javax.jms.Destination getDestination()
           
 boolean getDisableMessageID()
           
 boolean getDisableMessageTimestamp()
           
 int getPriority()
           
 long getTimeToLive()
           
 javax.jms.Topic getTopic()
           
 void publish(javax.jms.Message msg)
           
 void publish(javax.jms.Message msg, int i, int i1, long l)
           
 void publish(javax.jms.Topic topic, javax.jms.Message msg)
           
 void publish(javax.jms.Topic topic, javax.jms.Message msg, int i, int i1, long l)
           
 void send(javax.jms.Destination dstntn, javax.jms.Message msg)
           
 void send(javax.jms.Destination dstntn, javax.jms.Message msg, int i, int i1, long l)
           
 void send(javax.jms.Message msg)
           
 void send(javax.jms.Message msg, int i, int i1, long l)
           
 void setDeliveryMode(int i)
           
 void setDisableMessageID(boolean bln)
           
 void setDisableMessageTimestamp(boolean bln)
           
 void setPriority(int i)
           
 void setTimeToLive(long l)
           
 
Methods inherited from class com.silverpeas.notification.jms.access.JMSObjectDecorator
getDecoratedObject, getSession, setDecoratedObject, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decorateTopicPublisher

public static SilverpeasTopicPublisher decorateTopicPublisher(javax.jms.TopicPublisher publisher)
Decorates the specified JMS topic publisher.

Parameters:
publisher - the publisher to decorate.
Returns:
the decorator of the topic publisher.

getTopic

public javax.jms.Topic getTopic()
                         throws javax.jms.JMSException
Specified by:
getTopic in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Message msg)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Message msg,
                    int i,
                    int i1,
                    long l)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message msg)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message msg,
                    int i,
                    int i1,
                    long l)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

setDisableMessageID

public void setDisableMessageID(boolean bln)
                         throws javax.jms.JMSException
Specified by:
setDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageID

public boolean getDisableMessageID()
                            throws javax.jms.JMSException
Specified by:
getDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean bln)
                                throws javax.jms.JMSException
Specified by:
setDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
                                   throws javax.jms.JMSException
Specified by:
getDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDeliveryMode

public void setDeliveryMode(int i)
                     throws javax.jms.JMSException
Specified by:
setDeliveryMode in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDeliveryMode

public int getDeliveryMode()
                    throws javax.jms.JMSException
Specified by:
getDeliveryMode in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setPriority

public void setPriority(int i)
                 throws javax.jms.JMSException
Specified by:
setPriority in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getPriority

public int getPriority()
                throws javax.jms.JMSException
Specified by:
getPriority in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setTimeToLive

public void setTimeToLive(long l)
                   throws javax.jms.JMSException
Specified by:
setTimeToLive in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getTimeToLive

public long getTimeToLive()
                   throws javax.jms.JMSException
Specified by:
getTimeToLive in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDestination

public javax.jms.Destination getDestination()
                                     throws javax.jms.JMSException
Specified by:
getDestination in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message msg)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message msg,
                 int i,
                 int i1,
                 long l)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination dstntn,
                 javax.jms.Message msg)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination dstntn,
                 javax.jms.Message msg,
                 int i,
                 int i1,
                 long l)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException


Copyright © 2016 Silverpeas. All Rights Reserved.