| java.lang.Object com.caucho.jms.connection.MessageProducerImpl
All known Subclasses: com.caucho.jms.connection.QueueSenderImpl, com.caucho.jms.connection.TopicPublisherImpl,
MessageProducerImpl | public class MessageProducerImpl implements MessageProducer(Code) | | A basic message producer.
|
Method Summary | |
protected long | calculateExpiration(long timeToLive) Calculates the expires time. | public void | close() Closes the producer. | public int | getDeliveryMode() Returns the default delivery mode. | public Destination | getDestination() Returns the producer's destination. | public boolean | getDisableMessageID() Returns true if message ids are disabled by default. | public boolean | getDisableMessageTimestamp() Returns true if message timestamps are disabled by default. | public int | getPriority() | public long | getTimeToLive() | public void | send(Message message) | public void | send(Message message, int deliveryMode, int priority, long timeToLive) | public void | send(Destination destination, Message message) | public void | send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) | public void | setDeliveryMode(int deliveryMode) Sets the default delivery mode. | public void | setDisableMessageID(boolean disable) Sets true if message ids should be disabled by default. | public void | setDisableMessageTimestamp(boolean disable) Sets true if message timestamps should be disabled by default. | public void | setPriority(int priority) Sets the default priority. | public void | setTimeToLive(long timeToLive) Sets the default time to live. | public String | toString() |
calculateExpiration | protected long calculateExpiration(long timeToLive)(Code) | | Calculates the expires time.
|
close | public void close() throws JMSException(Code) | | Closes the producer.
|
getDeliveryMode | public int getDeliveryMode() throws JMSException(Code) | | Returns the default delivery mode.
|
getDestination | public Destination getDestination() throws JMSException(Code) | | Returns the producer's destination.
|
getDisableMessageID | public boolean getDisableMessageID() throws JMSException(Code) | | Returns true if message ids are disabled by default.
|
getDisableMessageTimestamp | public boolean getDisableMessageTimestamp() throws JMSException(Code) | | Returns true if message timestamps are disabled by default.
|
getPriority | public int getPriority() throws JMSException(Code) | | Returns the default priority
|
getTimeToLive | public long getTimeToLive() throws JMSException(Code) | | Returns the default time to live
|
send | public void send(Message message) throws JMSException(Code) | | Sends a message to the destination
Parameters: message - the message to send |
send | public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Sends a message to the destination
Parameters: message - the message to send Parameters: deliveryMode - the delivery mode Parameters: priority - the priority Parameters: timeToLive - how long the message should live |
send | public void send(Destination destination, Message message) throws JMSException(Code) | | Sends a message to the destination
Parameters: destination - the destination the message should be send to Parameters: message - the message to send |
send | public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Sends a message to the destination
Parameters: destination - the destination the message should be send to Parameters: message - the message to send Parameters: deliveryMode - the delivery mode Parameters: priority - the priority Parameters: timeToLive - how long the message should live |
setDeliveryMode | public void setDeliveryMode(int deliveryMode) throws JMSException(Code) | | Sets the default delivery mode.
|
setDisableMessageID | public void setDisableMessageID(boolean disable) throws JMSException(Code) | | Sets true if message ids should be disabled by default.
|
setDisableMessageTimestamp | public void setDisableMessageTimestamp(boolean disable) throws JMSException(Code) | | Sets true if message timestamps should be disabled by default.
|
setPriority | public void setPriority(int priority) throws JMSException(Code) | | Sets the default priority.
|
setTimeToLive | public void setTimeToLive(long timeToLive) throws JMSException(Code) | | Sets the default time to live.
|
|
|