|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.advisories.ProducerAdvisor
public class ProducerAdvisor
A helper class for listening for MessageProducer advisories * @version $Revision: 1.1.1.1 $
| Constructor Summary | |
|---|---|
ProducerAdvisor(Connection connection,
Destination destination)
Construct a ProducerAdvisor |
|
| Method Summary | |
|---|---|
Set |
activeProducers(Destination destination)
return a set of active ProducerInfo's for a particular destination |
void |
addListener(ProducerAdvisoryEventListener l)
Add a listener |
boolean |
isActive(Destination destination)
returns true if there is an active producer for the destination |
void |
onMessage(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(Connection connection,
Destination destination)
throws JMSException
connection - destination - the destination to listen for Producer events
JMSException| Method Detail |
|---|
public void start()
throws JMSException
JMSException
public void stop()
throws JMSException
JMSExceptionpublic void addListener(ProducerAdvisoryEventListener l)
l - public void removeListener(ProducerAdvisoryEventListener l)
l - public boolean isActive(Destination destination)
destination -
public Set activeProducers(Destination destination)
destination -
public void onMessage(Message msg)
onMessage in interface MessageListenermsg -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||