mirror of https://github.com/apache/activemq.git
minor generics, import, and javadoc cleanup
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@732184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e2c83d6fb6
commit
34acbdc154
|
@ -17,9 +17,8 @@
|
||||||
package org.apache.activemq.broker.region;
|
package org.apache.activemq.broker.region;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.activemq.broker.Broker;
|
import org.apache.activemq.broker.Broker;
|
||||||
import org.apache.activemq.broker.ConnectionContext;
|
import org.apache.activemq.broker.ConnectionContext;
|
||||||
|
@ -108,14 +107,17 @@ public class DestinationFilter implements Destination {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a message to the given destination which may be a wildcard
|
* Sends a message to the given destination which may be a wildcard
|
||||||
|
* @param context broker context
|
||||||
|
* @param message message to send
|
||||||
|
* @param destination possibly wildcard destination to send the message to
|
||||||
|
* @throws Exception on error
|
||||||
*/
|
*/
|
||||||
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination)
|
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
Broker broker = context.getConnectionContext().getBroker();
|
Broker broker = context.getConnectionContext().getBroker();
|
||||||
Set destinations = broker.getDestinations(destination);
|
Set<Destination> destinations = broker.getDestinations(destination);
|
||||||
|
|
||||||
for (Iterator iter = destinations.iterator(); iter.hasNext();) {
|
for (Destination dest : destinations) {
|
||||||
Destination dest = (Destination)iter.next();
|
|
||||||
dest.send(context, message.copy());
|
dest.send(context, message.copy());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue