Class CompositeDestination
- java.lang.Object
-
- org.apache.activemq.broker.region.virtual.CompositeDestination
-
- All Implemented Interfaces:
DestinationInterceptor,VirtualDestination
- Direct Known Subclasses:
CompositeQueue,CompositeTopic
public abstract class CompositeDestination extends Object implements VirtualDestination
-
-
Constructor Summary
Constructors Constructor Description CompositeDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcreate(Broker broker, ConnectionContext context, ActiveMQDestination destination)booleanequals(Object obj)CollectiongetForwardTo()ActiveMQDestinationgetMappedDestinations()Returns mapped destination(s)StringgetName()inthashCode()Destinationintercept(Destination destination)Creates a virtual destination from the physical destinationbooleanisConcurrentSend()booleanisCopyMessage()Deprecated.booleanisForwardOnly()booleanisSendWhenNotMatched()voidremove(Destination destination)voidsetConcurrentSend(boolean concurrentSend)when true, sends are done in parallel with the broker executorvoidsetCopyMessage(boolean copyMessage)Deprecated.this option will be removed in a later release, message are always copied.voidsetForwardOnly(boolean forwardOnly)Sets if the virtual destination is forward only (and so there is no physical queue to match the virtual queue) or if there is also a physical queue with the same name).voidsetForwardTo(Collection forwardDestinations)Sets the list of destinations to forward tovoidsetName(String name)Sets the name of this composite destinationvoidsetSendWhenNotMatched(boolean sendWhenNotMatched)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.broker.region.virtual.VirtualDestination
getVirtualDestination, interceptMappedDestination
-
-
-
-
Method Detail
-
intercept
public Destination intercept(Destination destination)
Description copied from interface:VirtualDestinationCreates a virtual destination from the physical destination- Specified by:
interceptin interfaceDestinationInterceptor- Specified by:
interceptin interfaceVirtualDestination
-
create
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination)
- Specified by:
createin interfaceDestinationInterceptor
-
remove
public void remove(Destination destination)
- Specified by:
removein interfaceDestinationInterceptor
-
getName
public String getName()
-
setName
public void setName(String name)
Sets the name of this composite destination
-
getForwardTo
public Collection getForwardTo()
-
setForwardTo
public void setForwardTo(Collection forwardDestinations)
Sets the list of destinations to forward to
-
isForwardOnly
public boolean isForwardOnly()
-
setForwardOnly
public void setForwardOnly(boolean forwardOnly)
Sets if the virtual destination is forward only (and so there is no physical queue to match the virtual queue) or if there is also a physical queue with the same name).
-
isCopyMessage
@Deprecated public boolean isCopyMessage()
Deprecated.
-
setCopyMessage
@Deprecated public void setCopyMessage(boolean copyMessage)
Deprecated.this option will be removed in a later release, message are always copied.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
-
setConcurrentSend
public void setConcurrentSend(boolean concurrentSend)
when true, sends are done in parallel with the broker executor
-
isConcurrentSend
public boolean isConcurrentSend()
-
getMappedDestinations
public ActiveMQDestination getMappedDestinations()
Description copied from interface:VirtualDestinationReturns mapped destination(s)- Specified by:
getMappedDestinationsin interfaceVirtualDestination
-
isSendWhenNotMatched
public boolean isSendWhenNotMatched()
-
setSendWhenNotMatched
public void setSendWhenNotMatched(boolean sendWhenNotMatched)
-
-