org.apache.activemq.broker.region.virtual
Class VirtualTopic

java.lang.Object
  extended by org.apache.activemq.broker.region.virtual.VirtualTopic
All Implemented Interfaces:
DestinationInterceptor, VirtualDestination

public class VirtualTopic
extends Object
implements 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.

Version:
$Revision: 650143 $

Constructor Summary
VirtualTopic()
           
 
Method Summary
 String getName()
           
 String getPostfix()
           
 String getPrefix()
           
 ActiveMQDestination getVirtualDestination()
          Returns the virtual destination
 Destination intercept(Destination destination)
          Creates a virtual destination from the physical destination
 void remove(Destination destination)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualTopic

public VirtualTopic()
Method Detail

getVirtualDestination

public ActiveMQDestination getVirtualDestination()
Description copied from interface: VirtualDestination
Returns the virtual destination

Specified by:
getVirtualDestination in interface VirtualDestination

intercept

public Destination intercept(Destination destination)
Description copied from interface: VirtualDestination
Creates a virtual destination from the physical destination

Specified by:
intercept in interface DestinationInterceptor
Specified by:
intercept in interface VirtualDestination

remove

public void remove(Destination destination)
Specified by:
remove in interface DestinationInterceptor

getPostfix

public String getPostfix()

setPostfix

public void setPostfix(String postfix)
Sets any postix used to identify the queue consumers


getPrefix

public String getPrefix()

setPrefix

public void setPrefix(String prefix)
Sets the prefix wildcard used to identify the queue consumers for a given topic


getName

public String getName()

setName

public void setName(String name)


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.