|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.advisories.TempDestinationAdvisor
A helper class for listening for TempDestination advisories
Constructor Summary | |
TempDestinationAdvisor(Connection connection,
Destination destination)
Construct a TempDestinationAdvisor |
Method Summary | |
void |
addListener(TempDestinationAdvisoryEventListener l)
Add a listener |
boolean |
isActive(Destination destination)
returns true if the temporary destination is active |
void |
onMessage(Message msg)
OnMessage() implementation |
void |
removeListener(TempDestinationAdvisoryEventListener 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 TempDestinationAdvisor(Connection connection, Destination destination) throws JMSException
connection
- destination
- the destination to listen for TempDestination events
JMSException
Method Detail |
public void start() throws JMSException
JMSException
public void stop() throws JMSException
JMSException
public boolean isActive(Destination destination)
destination
-
public void addListener(TempDestinationAdvisoryEventListener l)
l
- public void removeListener(TempDestinationAdvisoryEventListener l)
l
- public void onMessage(Message msg)
onMessage
in interface MessageListener
msg
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |