|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.SpyMessageProducer (src)
org.jboss.mq.SpyTopicPublisher
This class implements javax.jms.TopicPublisher A publisher created with a null Topic will now be interpreted as created as an unidentifyed publisher and follows the spec in throwing UnsupportedOperationException at the correct places.
Field Summary |
Fields inherited from class org.jboss.mq.SpyMessageProducer (src) |
closed, defaultDeliveryMode, defaultPriority, defaultTTL, destination, session |
Method Summary | |
Topic (src) |
getTopic()
Gets the topic associated with this TopicPublisher . |
void |
publish(Message (src) message)
Publishes a message to the topic. |
void |
publish(Message (src) message,
int deliveryMode,
int priority,
long timeToLive)
Publishes a message to the topic, specifying delivery mode, priority, and time to live. |
void |
publish(Topic (src) topic,
Message (src) message)
Publishes a message to a topic for an unidentified message producer. |
void |
publish(Topic (src) topic,
Message (src) 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. |
Methods inherited from class org.jboss.mq.SpyMessageProducer (src) |
checkClosed, close, encapsulateMessage, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive, setTimeToLive, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.MessageProducer (src) |
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
Method Detail |
public Topic (src) getTopic() throws JMSException (src)
TopicPublisher (src)
TopicPublisher
.
getTopic
in interface TopicPublisher (src)
JMSException (src)
- if the JMS provider fails to get the topic for
this TopicPublisher
due to some internal error.public void publish(Message (src) message) throws JMSException (src)
TopicPublisher (src)
TopicPublisher
's default delivery mode, priority,
and time to live.
publish
in interface TopicPublisher (src)
message
- the message to publish
JMSException (src)
- if the JMS provider fails to publish the message
due to some internal error.MessageProducer.getDeliveryMode()
,
MessageProducer.getTimeToLive()
,
MessageProducer.getPriority()
public void publish(Message (src) message, int deliveryMode, int priority, long timeToLive) throws JMSException (src)
TopicPublisher (src)
publish
in interface TopicPublisher (src)
message
- the message to publishdeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds)
JMSException (src)
- if the JMS provider fails to publish the message
due to some internal error.public void publish(Topic (src) topic, Message (src) message) throws JMSException (src)
TopicPublisher (src)
TopicPublisher
's default delivery mode,
priority, and time to live.
Typically, a message producer is assigned a topic at creation time; however, the JMS API also supports unidentified message producers, which require that the topic be supplied every time a message is published.
publish
in interface TopicPublisher (src)
topic
- the topic to publish this message tomessage
- the message to publish
JMSException (src)
- if the JMS provider fails to publish the message
due to some internal error.MessageProducer.getDeliveryMode()
,
MessageProducer.getTimeToLive()
,
MessageProducer.getPriority()
public void publish(Topic (src) topic, Message (src) message, int deliveryMode, int priority, long timeToLive) throws JMSException (src)
TopicPublisher (src)
Typically, a message producer is assigned a topic at creation time; however, the JMS API also supports unidentified message producers, which require that the topic be supplied every time a message is published.
publish
in interface TopicPublisher (src)
topic
- the topic to publish this message tomessage
- the message to publishdeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds)
JMSException (src)
- if the JMS provider fails to publish the message
due to some internal error.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |