Class VirtualTopic
java.lang.Object
org.apache.activemq.broker.region.virtual.VirtualTopic
- All Implemented Interfaces:
DestinationInterceptor,VirtualDestination
Creates Virtual
Topics using a prefix and postfix. The virtual destination creates a
wildcard that is then used to look up all active queue subscriptions which
match.
-
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()org.apache.activemq.command.ActiveMQDestinationReturns the virtual destinationinthashCode()intercept(Destination destination) Creates a virtual destination from the physical destinationinterceptMappedDestination(Destination destination) Creates a mapped destinationbooleanbooleanbooleanisLocal()booleanbooleanbooleanvoidremove(Destination destination) voidsetConcurrentSend(boolean concurrentSend) When true, dispatch to matching destinations in parallel (in multiple threads)voidsetDropOnResourceLimit(boolean dropOnResourceLimit) voidsetLocal(boolean local) voidvoidsetPostfix(String postfix) Sets any postix used to identify the queue consumersvoidSets the prefix wildcard used to identify the queue consumers for a given topicvoidsetSelectorAware(boolean selectorAware) Indicates whether the selectors of consumers are used to determine dispatch to a virtual destination, when true only messages matching an existing consumer will be dispatched.voidsetSetOriginalDestination(boolean setOriginalDestination) voidsetTransactedSend(boolean transactedSend) When true, dispatch to matching destinations always uses a transaction.toString()
-
Constructor Details
-
VirtualTopic
public VirtualTopic()
-
-
Method Details
-
getVirtualDestination
public org.apache.activemq.command.ActiveMQDestination getVirtualDestination()Description copied from interface:VirtualDestinationReturns the virtual destination- Specified by:
getVirtualDestinationin interfaceVirtualDestination
-
intercept
Description copied from interface:VirtualDestinationCreates a virtual destination from the physical destination- Specified by:
interceptin interfaceDestinationInterceptor- Specified by:
interceptin interfaceVirtualDestination
-
getMappedDestinations
public org.apache.activemq.command.ActiveMQDestination getMappedDestinations()Description copied from interface:VirtualDestinationReturns mapped destination(s)- Specified by:
getMappedDestinationsin interfaceVirtualDestination
-
interceptMappedDestination
Description copied from interface:VirtualDestinationCreates a mapped destination- Specified by:
interceptMappedDestinationin interfaceVirtualDestination
-
create
public void create(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) throws Exception - Specified by:
createin interfaceDestinationInterceptor- Throws:
Exception
-
remove
- Specified by:
removein 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 -
getName
-
setName
-
setSelectorAware
public void setSelectorAware(boolean selectorAware) Indicates whether the selectors of consumers are used to determine dispatch to a virtual destination, when true only messages matching an existing consumer will be dispatched.- Parameters:
selectorAware- when true take consumer selectors into consideration
-
isSelectorAware
public boolean isSelectorAware() -
isLocal
public boolean isLocal() -
setLocal
public void setLocal(boolean local) -
toString
-
isConcurrentSend
public boolean isConcurrentSend() -
setConcurrentSend
public void setConcurrentSend(boolean concurrentSend) When true, dispatch to matching destinations in parallel (in multiple threads)- Parameters:
concurrentSend-
-
isTransactedSend
public boolean isTransactedSend() -
setTransactedSend
public void setTransactedSend(boolean transactedSend) When true, dispatch to matching destinations always uses a transaction.- Parameters:
transactedSend-
-
hashCode
public int hashCode() -
equals
-
isDropOnResourceLimit
public boolean isDropOnResourceLimit() -
setDropOnResourceLimit
public void setDropOnResourceLimit(boolean dropOnResourceLimit) -
isSetOriginalDestination
public boolean isSetOriginalDestination() -
setSetOriginalDestination
public void setSetOriginalDestination(boolean setOriginalDestination)
-