Class CompositeDestination
java.lang.Object
org.apache.activemq.broker.region.virtual.CompositeDestination
- All Implemented Interfaces:
DestinationInterceptor,VirtualDestination
- Direct Known Subclasses:
CompositeQueue,CompositeTopic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) booleanorg.apache.activemq.command.ActiveMQDestinationReturns mapped destination(s)getName()inthashCode()intercept(Destination destination) Creates a virtual destination from the physical destinationbooleanbooleanDeprecated.booleanbooleanvoidremove(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 tovoidSets the name of this composite destinationvoidsetSendWhenNotMatched(boolean sendWhenNotMatched) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.broker.region.virtual.VirtualDestination
getVirtualDestination, interceptMappedDestination
-
Constructor Details
-
CompositeDestination
public CompositeDestination()
-
-
Method Details
-
intercept
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, org.apache.activemq.command.ActiveMQDestination destination) - Specified by:
createin interfaceDestinationInterceptor
-
remove
- Specified by:
removein interfaceDestinationInterceptor
-
getName
-
setName
Sets the name of this composite destination -
getForwardTo
-
setForwardTo
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. -
setCopyMessage
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 org.apache.activemq.command.ActiveMQDestination getMappedDestinations()Description copied from interface:VirtualDestinationReturns mapped destination(s)- Specified by:
getMappedDestinationsin interfaceVirtualDestination
-
hashCode
public int hashCode() -
equals
-
isSendWhenNotMatched
public boolean isSendWhenNotMatched() -
setSendWhenNotMatched
public void setSendWhenNotMatched(boolean sendWhenNotMatched)
-