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

java.lang.Object
  extended by org.apache.activemq.broker.region.virtual.CompositeDestination
All Implemented Interfaces:
DestinationInterceptor, VirtualDestination
Direct Known Subclasses:
CompositeQueue, CompositeTopic

public abstract class CompositeDestination
extends java.lang.Object
implements VirtualDestination

Version:
$Revision: 426366 $

Constructor Summary
CompositeDestination()
           
 
Method Summary
 java.util.Collection getForwardTo()
           
 java.lang.String getName()
           
 Destination intercept(Destination destination)
          Creates a virtual destination from the physical destination
 boolean isCopyMessage()
           
 boolean isForwardOnly()
           
 void setCopyMessage(boolean copyMessage)
          Sets whether a copy of the message will be sent to each destination.
 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).
 void setForwardTo(java.util.Collection forwardDestinations)
          Sets the list of destinations to forward to
 void setName(java.lang.String name)
          Sets the name of this composite destination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.broker.region.virtual.VirtualDestination
getVirtualDestination
 

Constructor Detail

CompositeDestination

public CompositeDestination()
Method Detail

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

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
Sets the name of this composite destination


getForwardTo

public java.util.Collection getForwardTo()

setForwardTo

public void setForwardTo(java.util.Collection forwardDestinations)
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

public boolean isCopyMessage()

setCopyMessage

public void setCopyMessage(boolean copyMessage)
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



Copyright © 2011 Apache Software Foundation. All Rights Reserved.