com.pcbsys.nirvana.nJMS.TopicPublisherImpl Class Reference

class implements TopicPublisher interface. More...

Inheritance diagram for com.pcbsys.nirvana.nJMS.TopicPublisherImpl:
com.pcbsys.nirvana.nJMS.MessageProducerImpl

Public Member Functions

javax.jms.Topic getTopic () throws javax.jms.JMSException
 Get the Topic destination set with this Topic Publisher Object. More...
 
void publish (javax.jms.Message _message) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException
 Method to publish JMS message. More...
 
void publish (javax.jms.Message _message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException
 Method to publish JMS message. More...
 
void publish (javax.jms.Topic _topic, javax.jms.Message _message) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException
 Method to publish JMS messages to specific Topic. More...
 
void publish (javax.jms.Topic _topic, javax.jms.Message _message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException
 Method to publish JMS messages to specific Topic. More...
 
void publish (javax.jms.Message[] messages) throws javax.jms.JMSException
 Publish batch of messages using the MessageProducer's default delivery mode, priority, and time to live. More...
 
void publish (javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
 Publish batch of messages by specifying delivery mode, priority, and time to live. More...
 
void publish (javax.jms.Topic topic, javax.jms.Message[] messages) throws javax.jms.JMSException
 Publish batch of messages to destination using the TopicProducer's default delivery mode, priority, and time to live. More...
 
void publish (javax.jms.Topic topic, javax.jms.Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
 Publish batch of messages to destination by specifying default delivery mode, priority, and time to live. More...
 
 TopicPublisherImpl ()
 <Enter Constructor Description>
 
- Public Member Functions inherited from com.pcbsys.nirvana.nJMS.MessageProducerImpl
void _send (javax.jms.Destination destination, javax.jms.Message msg, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
 Sends message, specifying delivery mode, priority and time to live. More...
 
synchronized void close () throws javax.jms.JMSException
 Closes the message producer. More...
 
int getDeliveryMode () throws javax.jms.JMSException
 Gets the producer's default delivery mode. More...
 
javax.jms.Destination getDestination () throws javax.jms.JMSException
 Gets the destination associated with this MessageProducer. More...
 
boolean getDisableMessageID () throws javax.jms.JMSException
 Gets an indication of whether message IDs are disabled. More...
 
boolean getDisableMessageTimestamp () throws javax.jms.JMSException
 Gets an indication of whether message timestamps are disabled. More...
 
int getPriority () throws javax.jms.JMSException
 Gets the producer's default priority for messages. More...
 
long getTimeToLive () throws javax.jms.JMSException
 Gets the default time to live. More...
 
 MessageProducerImpl ()
 This class implements the MessageProducer interface for JMS 1.1.
 
void send (Message message, int deliveryMode, int priority, long ttl) throws javax.jms.JMSException
 Sends a message for message producer, specifying delivery mode, priority and time to live. More...
 
void send (Destination destination, Message message) throws javax.jms.JMSException
 Sends a message to destination using the MessageProducer's default delivery mode, priority and time to live. More...
 
void send (Message message) throws javax.jms.JMSException
 Sends a message using the MessageProducer's default delivery mode, priority, and time to live. More...
 
void send (Message[] messages) throws javax.jms.JMSException
 Sends batch of messages using the MessageProducer's default delivery mode, priority, and time to live. More...
 
void send (Message[] messages, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
 Sends a batch of messages by specifying delivery mode, priority and time to live. More...
 
void send (Destination destination, Message[] messages, int deliveryMode, int priority, long ttl) throws javax.jms.JMSException
 Sends a batch of messages to destination by specifying delivery mode, priority, and time to live. More...
 
void send (Destination destination, Message[] messages) throws javax.jms.JMSException
 Sends batch of messages to destination using the MessageProducer's default delivery mode, priority, and time to live. More...
 
void send (javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
 Sends message to a destination, specifying delivery mode, priority and time to live. More...
 
void setDeliveryMode (int deliveryMode) throws javax.jms.JMSException
 Set the default delivery mode to be used by Producer. More...
 
void setDisableMessageID (boolean value) throws javax.jms.JMSException
 Set disable message ID. More...
 
void setDisableMessageTimestamp (boolean value) throws javax.jms.JMSException
 Set disable message time stamp. More...
 
void setPriority (int messagePriority) throws javax.jms.JMSException
 Sets the producer's default priority. More...
 
void setTimeToLive (long timeToLive) throws javax.jms.JMSException
 Sets the default time to live in milliseconds. More...
 

Additional Inherited Members

- Protected Attributes inherited from com.pcbsys.nirvana.nJMS.MessageProducerImpl
boolean disableMessageID = false
 <Enter Field Description>
 
boolean disableMessageTimestamp = true
 <Enter Field Description>
 
nChannel myChannel = null
 <Enter Field Description>
 
int myDeliveryMode = javax.jms.Message.DEFAULT_DELIVERY_MODE
 <Enter Field Description>
 
int myPriority = javax.jms.Message.DEFAULT_PRIORITY
 <Enter Field Description>
 
long ttl = javax.jms.Message.DEFAULT_TIME_TO_LIVE
 <Enter Field Description>
 

Detailed Description

class implements TopicPublisher interface.

Member Function Documentation

javax.jms.Topic com.pcbsys.nirvana.nJMS.TopicPublisherImpl.getTopic ( ) throws javax.jms.JMSException

Get the Topic destination set with this Topic Publisher Object.

Returns
Topic
Exceptions
javax.jms.JMSExceptionException if valid destination is not set on the publisher
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Message  _message) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException

Method to publish JMS message.

Parameters
_messageJMS message.
Exceptions
javax.jms.JMSExceptionIn case of any failure.
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Message  _message,
int  deliveryMode,
int  priority,
long  timeToLive 
) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException

Method to publish JMS message.

Parameters
_messageJMS message.
deliveryModemessage delivery mode, PERSISTENT or NON_PERSISTENT
priorityMessage priority for the message
timeToLiveTime to Live in milli seconds
Exceptions
javax.jms.JMSExceptionIn case of failure, JMS exception
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Topic  _topic,
javax.jms.Message  _message 
) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException

Method to publish JMS messages to specific Topic.

Parameters
_topictopic destination where to send the message.
_messageJMS message.
Exceptions
javax.jms.JMSExceptionIn case of failure, JMS exception
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Topic  _topic,
javax.jms.Message  _message,
int  deliveryMode,
int  priority,
long  timeToLive 
) throws javax.jms.JMSException, javax.jms.InvalidDestinationException, javax.jms.MessageFormatException

Method to publish JMS messages to specific Topic.

Parameters
_topictopic destination where to publish the message.
_messageBatch of JMS message.
deliveryModemessage delivery mode, PERSISTENT or NON_PERSISTENT
priorityMessage priority for the message
timeToLiveTime to Live in milli seconds
Exceptions
javax.jms.JMSExceptionIn case of failure, JMS exception
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Message[]  messages) throws javax.jms.JMSException

Publish batch of messages using the MessageProducer's default delivery mode, priority, and time to live.

Note: This method is non standard extension to JMS specification.

Parameters
messagesBatch of JMS message.
Exceptions
javax.jms.JMSExceptionIn case of any failure.
Since
10.0
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Message[]  messages,
int  deliveryMode,
int  priority,
long  timeToLive 
) throws javax.jms.JMSException

Publish batch of messages by specifying delivery mode, priority, and time to live.

Note: This method is non standard extension to JMS specification.

Parameters
messagesBatch of JMS message.
deliveryModemessage delivery mode, PERSISTENT or NON_PERSISTENT
priorityMessage priority for the message
timeToLiveTime to Live in milli seconds
Exceptions
javax.jms.JMSExceptionIn case of any failure.
Since
10.0
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Topic  topic,
javax.jms.Message[]  messages 
) throws javax.jms.JMSException

Publish batch of messages to destination using the TopicProducer's default delivery mode, priority, and time to live.

Note: This method is non standard extension to JMS specification.

Parameters
topicqueue destination where to send the message.
messagesBatch of JMS message.
Exceptions
javax.jms.JMSExceptionIn case of any failure.
Since
10.0
void com.pcbsys.nirvana.nJMS.TopicPublisherImpl.publish ( javax.jms.Topic  topic,
javax.jms.Message[]  messages,
int  deliveryMode,
int  priority,
long  timeToLive 
) throws javax.jms.JMSException

Publish batch of messages to destination by specifying default delivery mode, priority, and time to live.

Note: This method is non standard extension to JMS specification.

Parameters
topicqueue destination where to send the message.
messagesBatch of JMS message.
deliveryModemessage delivery mode, PERSISTENT or NON_PERSISTENT
priorityMessage priority for the message
timeToLiveTime to Live in milli seconds
Exceptions
javax.jms.JMSExceptionIn case of any failure.
Since
10.0