org.activemq.advisories
Class TempDestinationAdvisor

java.lang.Object
  extended byorg.activemq.advisories.TempDestinationAdvisor
All Implemented Interfaces:
MessageListener

public class TempDestinationAdvisor
extends Object
implements MessageListener

A helper class for listening for TempDestination advisories

Version:
$Revision: 1.1.1.1 $

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

TempDestinationAdvisor

public TempDestinationAdvisor(Connection connection,
                              Destination destination)
                       throws JMSException
Construct a TempDestinationAdvisor

Parameters:
connection -
destination - the destination to listen for TempDestination events
Throws:
JMSException
Method Detail

start

public void start()
           throws JMSException
start listening for advisories

Throws:
JMSException

stop

public void stop()
          throws JMSException
stop listening for advisories

Throws:
JMSException

isActive

public boolean isActive(Destination destination)
returns true if the temporary destination is active

Parameters:
destination -
Returns:
true if a subscriber for the destination

addListener

public void addListener(TempDestinationAdvisoryEventListener l)
Add a listener

Parameters:
l -

removeListener

public void removeListener(TempDestinationAdvisoryEventListener l)
Remove a listener

Parameters:
l -

onMessage

public void onMessage(Message msg)
OnMessage() implementation

Specified by:
onMessage in interface MessageListener
Parameters:
msg -


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.