Package org.apache.activemq.advisory
Class DestinationSource
java.lang.Object
org.apache.activemq.advisory.DestinationSource
- All Implemented Interfaces:
jakarta.jms.MessageListener
A helper class which keeps track of the Destinations available in a broker and allows you to listen to them
being created or deleted.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the current queues available on the brokerReturns the current temporary topics available on the brokerReturns the current temporary queues available on the brokerReturns the current topics on the brokervoid
onMessage
(jakarta.jms.Message message) void
setDestinationListener
(DestinationListener listener) void
start()
void
stop()
-
Constructor Details
-
DestinationSource
public DestinationSource(jakarta.jms.Connection connection) throws jakarta.jms.JMSException - Throws:
jakarta.jms.JMSException
-
-
Method Details
-
getListener
-
setDestinationListener
-
getQueues
Returns the current queues available on the broker -
getTopics
Returns the current topics on the broker -
getTemporaryQueues
Returns the current temporary topics available on the broker -
getTemporaryTopics
Returns the current temporary queues available on the broker -
start
public void start() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
stop
public void stop() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
onMessage
public void onMessage(jakarta.jms.Message message) - Specified by:
onMessage
in interfacejakarta.jms.MessageListener
-
fireDestinationEvent
-