public class MirroredQueue extends Object implements DestinationInterceptor, BrokerServiceAware
| Constructor and Description |
|---|
MirroredQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Broker broker,
ConnectionContext context,
org.apache.activemq.command.ActiveMQDestination destination) |
protected Destination |
getMirrorDestination(Destination destination) |
protected org.apache.activemq.command.ActiveMQDestination |
getMirrorTopic(org.apache.activemq.command.ActiveMQDestination original) |
String |
getPostfix() |
String |
getPrefix() |
Destination |
intercept(Destination destination) |
boolean |
isCopyMessage() |
void |
remove(Destination destination) |
void |
setBrokerService(BrokerService brokerService) |
void |
setCopyMessage(boolean copyMessage)
Sets whether a copy of the message will be sent to each destination.
|
void |
setPostfix(String postfix)
Sets any postix used to identify the queue consumers
|
void |
setPrefix(String prefix)
Sets the prefix wildcard used to identify the queue consumers for a given
topic
|
public MirroredQueue()
public Destination intercept(Destination destination)
intercept in interface DestinationInterceptorpublic void remove(Destination destination)
remove in interface DestinationInterceptorpublic void create(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination)
create in interface DestinationInterceptorpublic String getPostfix()
public void setPostfix(String postfix)
public void setPrefix(String prefix)
public boolean isCopyMessage()
public void setCopyMessage(boolean copyMessage)
public void setBrokerService(BrokerService brokerService)
setBrokerService in interface BrokerServiceAwareprotected Destination getMirrorDestination(Destination destination) throws Exception
Exceptionprotected org.apache.activemq.command.ActiveMQDestination getMirrorTopic(org.apache.activemq.command.ActiveMQDestination original)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.