public class VirtualTopic extends Object implements VirtualDestination
| Constructor and Description |
|---|
VirtualTopic() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Broker broker,
ConnectionContext context,
ActiveMQDestination destination) |
ActiveMQDestination |
getMappedDestinations()
Returns mapped destination(s)
|
String |
getName() |
String |
getPostfix() |
String |
getPrefix() |
ActiveMQDestination |
getVirtualDestination()
Returns the virtual destination
|
Destination |
intercept(Destination destination)
Creates a virtual destination from the physical destination
|
Destination |
interceptMappedDestination(Destination destination)
Creates a mapped destination
|
boolean |
isLocal() |
boolean |
isSelectorAware() |
void |
remove(Destination destination) |
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.
|
String |
toString() |
public VirtualTopic()
public ActiveMQDestination getVirtualDestination()
VirtualDestinationgetVirtualDestination in interface VirtualDestinationpublic Destination intercept(Destination destination)
VirtualDestinationintercept in interface DestinationInterceptorintercept in interface VirtualDestinationpublic ActiveMQDestination getMappedDestinations()
VirtualDestinationgetMappedDestinations in interface VirtualDestinationpublic Destination interceptMappedDestination(Destination destination)
VirtualDestinationinterceptMappedDestination in interface VirtualDestinationpublic void create(Broker broker, ConnectionContext context, 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)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.