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