|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public DestinationCache getDestinationCache(JmsDestination destination)
throws javax.jms.JMSException
DestinationEventListeners will be notified.destination - the destination of the cache to returndestinationjavax.jms.InvalidDestinationException - if destination doesn't
existjavax.jms.JMSException - if the cache can't be createdpublic JmsDestination getDestination(java.lang.String name)
name - the name of the destinationname or
null if none exists
public void createDestination(JmsDestination destination)
throws javax.jms.JMSException
DestinationEventListeners will be notified.destination - the destination to createjavax.jms.InvalidDestinationException - if the destination already exists or
is a wildcard destinationjavax.jms.JMSException - if the destination can't be created
public void removeDestination(JmsDestination destination)
throws javax.jms.JMSException
DestinationEventListeners will be notified.destination - the destination to removejavax.jms.InvalidDestinationException - if the destination is invalid.javax.jms.JMSException - if the destination can't be removed
public java.util.List getDestinations()
throws javax.jms.JMSException
javax.jms.JMSException - for any JMS errorpublic java.util.Map getTopicDestinationCaches(JmsTopic topic)
topic - the topicpublic void addDestinationEventListener(DestinationEventListener listener)
listener - the listener to addpublic void removeDestinationEventListener(DestinationEventListener listener)
listener - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||