|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.advisories.ProducerAdvisor
A helper class for listening for MessageProducer advisories * @version $Revision: 1.1.1.1 $
| Constructor Summary | |
ProducerAdvisor(javax.jms.Connection connection,
javax.jms.Destination destination)
Construct a ProducerAdvisor |
|
| Method Summary | |
java.util.Set |
activeProducers(javax.jms.Destination destination)
return a set of active ProducerInfo's for a particular destination |
void |
addListener(ProducerAdvisoryEventListener l)
Add a listener |
boolean |
isActive(javax.jms.Destination destination)
returns true if there is an active producer for the destination |
void |
onMessage(javax.jms.Message msg)
OnMessage() implementation |
void |
removeListener(ProducerAdvisoryEventListener l)
Remove a listener |
void |
start()
start listening for advisories |
void |
stop()
stop listening for advisories |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProducerAdvisor(javax.jms.Connection connection,
javax.jms.Destination destination)
throws javax.jms.JMSException
connection - destination - the destination to listen for Producer events
javax.jms.JMSException| Method Detail |
public void start()
throws javax.jms.JMSException
javax.jms.JMSException
public void stop()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void addListener(ProducerAdvisoryEventListener l)
l - public void removeListener(ProducerAdvisoryEventListener l)
l - public boolean isActive(javax.jms.Destination destination)
destination -
public java.util.Set activeProducers(javax.jms.Destination destination)
destination -
public void onMessage(javax.jms.Message msg)
onMessage in interface javax.jms.MessageListenermsg -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||