public class VirtualTopic extends Object implements VirtualDestination
| Constructor and Description |
|---|
VirtualTopic() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Broker broker,
ConnectionContext context,
org.apache.activemq.command.ActiveMQDestination destination) |
boolean |
equals(Object obj) |
org.apache.activemq.command.ActiveMQDestination |
getMappedDestinations()
Returns mapped destination(s)
|
String |
getName() |
String |
getPostfix() |
String |
getPrefix() |
org.apache.activemq.command.ActiveMQDestination |
getVirtualDestination()
Returns the virtual destination
|
int |
hashCode() |
Destination |
intercept(Destination destination)
Creates a virtual destination from the physical destination
|
Destination |
interceptMappedDestination(Destination destination)
Creates a mapped destination
|
boolean |
isConcurrentSend() |
boolean |
isLocal() |
boolean |
isSelectorAware() |
boolean |
isTransactedSend() |
void |
remove(Destination destination) |
void |
setConcurrentSend(boolean concurrentSend)
When true, dispatch to matching destinations in parallel (in multiple threads)
|
void |
setLocal(boolean local) |
void |
setName(String name) |
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
|
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.
|
void |
setTransactedSend(boolean transactedSend)
When true, dispatch to matching destinations always uses a transaction.
|
String |
toString() |
public VirtualTopic()
public org.apache.activemq.command.ActiveMQDestination getVirtualDestination()
VirtualDestinationgetVirtualDestination in interface VirtualDestinationpublic Destination intercept(Destination destination)
VirtualDestinationintercept in interface DestinationInterceptorintercept in interface VirtualDestinationpublic org.apache.activemq.command.ActiveMQDestination getMappedDestinations()
VirtualDestinationgetMappedDestinations in interface VirtualDestinationpublic Destination interceptMappedDestination(Destination destination)
VirtualDestinationinterceptMappedDestination in interface VirtualDestinationpublic void create(Broker broker, ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) throws Exception
create in interface DestinationInterceptorExceptionpublic void remove(Destination destination)
remove in interface DestinationInterceptorpublic String getPostfix()
public void setPostfix(String postfix)
public void setPrefix(String prefix)
public void setSelectorAware(boolean selectorAware)
selectorAware - when true take consumer selectors into considerationpublic boolean isSelectorAware()
public boolean isLocal()
public void setLocal(boolean local)
public boolean isConcurrentSend()
public void setConcurrentSend(boolean concurrentSend)
concurrentSend - public boolean isTransactedSend()
public void setTransactedSend(boolean transactedSend)
transactedSend - Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.