Class MirroredQueue
java.lang.Object
org.apache.activemq.broker.region.virtual.MirroredQueue
- All Implemented Interfaces:
BrokerServiceAware,DestinationInterceptor
Creates Mirrored
Queue using a prefix and postfix to define the topic name on which to mirror the queue to.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) protected DestinationgetMirrorDestination(Destination destination) protected org.apache.activemq.command.ActiveMQDestinationgetMirrorTopic(org.apache.activemq.command.ActiveMQDestination original) intercept(Destination destination) booleanvoidremove(Destination destination) voidsetBrokerService(BrokerService brokerService) voidsetCopyMessage(boolean copyMessage) Sets whether a copy of the message will be sent to each destination.voidsetPostfix(String postfix) Sets any postix used to identify the queue consumersvoidSets the prefix wildcard used to identify the queue consumers for a given topic
-
Constructor Details
-
MirroredQueue
public MirroredQueue()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceDestinationInterceptor
-
remove
- Specified by:
removein interfaceDestinationInterceptor
-
create
public void create(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) - Specified by:
createin interfaceDestinationInterceptor
-
getPostfix
-
setPostfix
Sets any postix used to identify the queue consumers -
getPrefix
-
setPrefix
Sets the prefix wildcard used to identify the queue consumers for a given topic -
isCopyMessage
public boolean isCopyMessage() -
setCopyMessage
public void setCopyMessage(boolean copyMessage) Sets whether a copy of the message will be sent to each destination. Defaults to true so that the forward destination is set as the destination of the message -
setBrokerService
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
getMirrorDestination
- Throws:
Exception
-
getMirrorTopic
protected org.apache.activemq.command.ActiveMQDestination getMirrorTopic(org.apache.activemq.command.ActiveMQDestination original)
-