Package org.apache.activemq.broker
Class CompositeDestinationBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.broker.CompositeDestinationBroker
This broker filter handles composite destinations. If a broker operation is
invoked using a composite destination, this filter repeats the operation
using each destination of the composite. HRC: I think this filter is
dangerous to use to with the consumer operations. Multiple Subscription
objects will be associated with a single JMS consumer each having a different
idea of what the current pre-fetch dispatch size is. If this is used, then
the client has to expect many more messages to be dispatched than the
pre-fetch setting allows.
-
Field Summary
Fields inherited from class org.apache.activemq.broker.BrokerFilter
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) A producer may register to send to multiple destinations via a composite destination.voidremoveProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) A producer may de-register from sending to multiple destinations via a composite destination.voidsend(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message message) Send a message to the broker to using the specified destination.Methods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
-
Constructor Details
-
CompositeDestinationBroker
-
-
Method Details
-
addProducer
public void addProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception A producer may register to send to multiple destinations via a composite destination.- Specified by:
addProducerin interfaceBroker- Specified by:
addProducerin interfaceRegion- Overrides:
addProducerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
removeProducer
public void removeProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception A producer may de-register from sending to multiple destinations via a composite destination.- Specified by:
removeProducerin interfaceBroker- Specified by:
removeProducerin interfaceRegion- Overrides:
removeProducerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
send
public void send(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message message) throws Exception Description copied from interface:RegionSend a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.- Specified by:
sendin interfaceRegion- Overrides:
sendin classBrokerFilter- Parameters:
producerExchange- the environment the operation is being executed under.- Throws:
Exception- TODO
-