|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiDestination
Description: A MultiDestination is made up of component Destinations. It is used in conjuction with the JMS API to expand operations involving Destinations to include multiple destinations. The precise interpretation of a MultiDestination varies depending on the context in which it is used.
Destination
,
Queue
,
Topic
,
MultiTopic
Method Summary | |
---|---|
void |
add(Destination dest)
Adds a component destination to the MultiDestination unless it is already a component of the MultiDestination. |
void |
clear()
Clears all component Destinations from this MultiDestination. |
boolean |
contains(Destination dest)
Returns true if the MultiDestination contains dest . |
boolean |
equals(java.lang.Object object)
Tests whether object is a MultiDestination made up of the same
component Destinations. |
java.util.Iterator |
iterator()
Return a list of the component Destinations that make up this MultiDestination. |
void |
remove(Destination dest)
If there is an equivalent component Destination in this MultiDestination it will be removed. |
Methods inherited from interface javax.naming.Referenceable |
---|
getReference |
Method Detail |
---|
void add(Destination dest) throws JMSException
dest
is
itself a MultiDestination each Destination in dest
is added
to this MultiDestination.
dest
- The destination to add to this MultiDestination
JMSException
- if the Destination cannot be added.void remove(Destination dest) throws JMSException
dest
is
itself a MultiDestination each Destination in dest
is removed
from this MultiDestination.
dest
- The component destination to add to this MultiDestination
JMSException
- If an error occurs removing the destination.boolean contains(Destination dest) throws JMSException
dest
. If
dest
is itself a MultiDestination then this returns true
only if this MultiDestination contains all Destinations in dest
dest
- The Destination to check.
dest
.
JMSException
- If there is an error checking for the presence
of dest
.java.util.Iterator iterator() throws JMSException
JMSException
void clear()
boolean equals(java.lang.Object object)
object
is a MultiDestination made up of the same
component Destinations.
equals
in class java.lang.Object
object
- the reference object with which to compare.
object
is also a MultiDestination with the same
set of component Destinations
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |