public class MQTopicPublisher extends MQMessageProducer implements javax.jms.TopicPublisher, JmsTopicPublisher
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Topic |
getTopic()
Gets the topic associated with this publisher.
|
void |
publish(javax.jms.Message message)
Publishes a message to the topic.
|
void |
publish(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Publishes a message to the topic, specifying delivery mode, priority, and time to live.
|
void |
publish(javax.jms.Topic topic,
javax.jms.Message message)
Publishes a message to a topic for an unidentified message producer.
|
void |
publish(javax.jms.Topic topic,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Publishes a message to a topic for an unidentified message producer, specifying delivery mode,
priority and time to live.
|
close, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLiveclear, containsKey, containsValue, entrySet, equals, get, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, size, valuesgetClass, notify, notifyAll, toString, wait, wait, waitsetBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringPropertygetBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExistsclear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesclose, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLivepublic javax.jms.Topic getTopic()
throws javax.jms.JMSException
getTopic in interface javax.jms.TopicPublisherjavax.jms.JMSException - if JMS fails to get topic for this topic publisher due to some internal
errorpublic void publish(javax.jms.Message message)
throws javax.jms.JMSException
publish in interface javax.jms.TopicPublishermessage - the message to publish.javax.jms.JMSException - if the publisher fails to publish the message due to an internal error.public void publish(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
publish in interface javax.jms.TopicPublishermessage - the message to publishdeliveryMode - the delivery mode to usepriority - the priority for this messagetimeToLive - the message's lifetime (in milliseconds)javax.jms.JMSException - if the publisher fails to publish the message due to an internal error.public void publish(javax.jms.Topic topic,
javax.jms.Message message)
throws javax.jms.JMSException
publish in interface javax.jms.TopicPublishertopic - the topic to publish this message tomessage - - the message to publishjavax.jms.JMSException - if the publisher fails to publish the message due to an internal errorpublic void publish(javax.jms.Topic topic,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
publish in interface javax.jms.TopicPublishertopic - the topic to publish this message to.message - the message to publishdeliveryMode - the delivery mode to usepriority - the priority for this messagetimeToLive - the messages lifetime (in milliseconds)javax.jms.JMSException - if the publisher fails to publish the message due to an internal error.