|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.advisories.ConsumerAdvisor
A helper class for listening for MessageConsumer advisories
| Constructor Summary | |
ConsumerAdvisor(javax.jms.Connection connection,
javax.jms.Destination destination)
Construct a ConsumerAdvisor |
|
| Method Summary | |
java.util.Set |
activeConsumers(javax.jms.Destination destination)
return a set of active ConsumerInfo's for a particular destination |
void |
addListener(ConsumerAdvisoryEventListener l)
Add a listener |
boolean |
isActive(javax.jms.Destination destination)
returns true if there is an active subscriber for the destination |
void |
onMessage(javax.jms.Message msg)
OnMessage() implementation |
void |
removeListener(ConsumerAdvisoryEventListener 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 ConsumerAdvisor(javax.jms.Connection connection,
javax.jms.Destination destination)
throws javax.jms.JMSException
connection - destination - the destination to listen for Consumer 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(ConsumerAdvisoryEventListener l)
l - public void removeListener(ConsumerAdvisoryEventListener l)
l - public boolean isActive(javax.jms.Destination destination)
destination -
public java.util.Set activeConsumers(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 | ||||||||||