|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DestinationManager
DestinationManager
is responsible for creating and managing the
lifecycle of DestinationCache
objects. The destination manager is
also responsible for managing messages that are received by the message
manager, which do not have any registered DestinationCache
.
Method Summary | |
---|---|
void |
addDestinationEventListener(DestinationEventListener listener)
Register an event listener to be notified when destinations are created and destroyed. |
void |
createDestination(JmsDestination destination)
Create a destination. |
JmsDestination |
getDestination(java.lang.String name)
Returns a destination given its name. |
DestinationCache |
getDestinationCache(JmsDestination destination)
Returns the cache for the supplied destination. |
java.util.List |
getDestinations()
Returns all destinations. |
java.util.Map |
getTopicDestinationCaches(JmsTopic topic)
Returns a map of all destinations that match the specified topic. |
void |
removeDestination(JmsDestination destination)
Remove a destination. |
void |
removeDestinationEventListener(DestinationEventListener listener)
Remove an event listener. |
Methods inherited from interface org.exolab.jms.messagemgr.MessageManagerEventListener |
---|
messageAdded, persistentMessageAdded |
Methods inherited from interface org.exolab.jms.gc.GarbageCollectable |
---|
collectGarbage |
Method Detail |
---|
DestinationCache getDestinationCache(JmsDestination destination) throws javax.jms.JMSException
DestinationEventListener
s will be notified.
destination
- the destination of the cache to return
destination
javax.jms.InvalidDestinationException
- if destination
doesn't
exist
javax.jms.JMSException
- if the cache can't be createdJmsDestination getDestination(java.lang.String name)
name
- the name of the destination
name
or
null
if none existsvoid createDestination(JmsDestination destination) throws javax.jms.JMSException
DestinationEventListener
s will be notified.
destination
- the destination to create
javax.jms.InvalidDestinationException
- if the destination already exists or
is a wildcard destination
javax.jms.JMSException
- if the destination can't be createdvoid removeDestination(JmsDestination destination) throws javax.jms.JMSException
DestinationEventListener
s will be notified.
destination
- the destination to remove
javax.jms.InvalidDestinationException
- if the destination is invalid.
javax.jms.JMSException
- if the destination can't be removedjava.util.List getDestinations() throws javax.jms.JMSException
javax.jms.JMSException
- for any JMS errorjava.util.Map getTopicDestinationCaches(JmsTopic topic)
topic
- the topic
void addDestinationEventListener(DestinationEventListener listener)
listener
- the listener to addvoid removeDestinationEventListener(DestinationEventListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |