jms4spread
Class MessageProducer

java.lang.Object
  |
  +--jms4spread.MessageProducer
Direct Known Subclasses:
TopicPublisher

public class MessageProducer
extends java.lang.Object

A Client uses a MessageProducer to send a message to an object


Constructor Summary
MessageProducer()
           
 
Method Summary
 void close()
          Closes the MessageProducer.
 int getDeliveryMode()
          Gets the Delivery Mode of the Message Producer
 boolean getDisableMessageID()
          Get a boolean indicating whether messageID is disabled
 boolean getDisableMessageTimestamp()
          Get a boolean indicating whether message time stamp is disabled
 int getPriority()
          Get the message priority
 long getTimeToLive()
          Get the message time to live
 void setDeliveryMode(int mode)
          Sets the message delivery mode - only non persistant mode is supported
 void setDisableMessageID(boolean id)
          Sets whether message ids are disabled
 void setDisableMessageTimestamp(boolean ts)
          Sets whether message timestamps are disabled
 void setPriority(int p)
          Sets the priority of the message
 void setTimeToLive(long ttl)
          Sets the time to live of the message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageProducer

public MessageProducer()
Method Detail

getDeliveryMode

public int getDeliveryMode()
                    throws JMSException
Gets the Delivery Mode of the Message Producer
Returns:
the delivery mode
Throws:
JMSException - in case of internal error

getDisableMessageID

public boolean getDisableMessageID()
                            throws JMSException
Get a boolean indicating whether messageID is disabled
Returns:
the boolan
Throws:
JMSException - in case of internal error

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
                                   throws JMSException
Get a boolean indicating whether message time stamp is disabled
Returns:
the boolan
Throws:
JMSException - in case of internal error

getPriority

public int getPriority()
                throws JMSException
Get the message priority
Returns:
the priority
Throws:
JMSException - in case of internal error

getTimeToLive

public long getTimeToLive()
                   throws JMSException
Get the message time to live
Returns:
the time to live
Throws:
JMSException - in case of internal error

setDeliveryMode

public void setDeliveryMode(int mode)
                     throws JMSException
Sets the message delivery mode - only non persistant mode is supported
Parameters:
mode - the delivery mode
Throws:
JMSException - in case of internal error

setDisableMessageID

public void setDisableMessageID(boolean id)
                         throws JMSException
Sets whether message ids are disabled
Parameters:
id - a boolean indicating if message ids are disabled
Throws:
JMSException - in case of internal error

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean ts)
                                throws JMSException
Sets whether message timestamps are disabled
Parameters:
ts - a boolean indicating if message time stamps are disabled
Throws:
JMSException - in case of internal error

setPriority

public void setPriority(int p)
                 throws JMSException
Sets the priority of the message
Parameters:
p - the priority
Throws:
JMSException - in case of internal error

setTimeToLive

public void setTimeToLive(long ttl)
                   throws JMSException
Sets the time to live of the message
Parameters:
ttl - the time to live
Throws:
JMSException - in case of internal error

close

public void close()
           throws JMSException
Closes the MessageProducer. This methods dissalocated the resourced allocated outside the JVM