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

java.lang.Object
  extended by org.apache.activemq.broker.region.virtual.FilteredDestination

public class FilteredDestination
extends Object

Represents a destination which is filtered using some predicate such as a selector so that messages are only dispatched to the destination if they match the filter.


Constructor Summary
FilteredDestination()
           
 
Method Summary
 ActiveMQDestination getDestination()
           
 BooleanExpression getFilter()
           
 String getSelector()
           
 boolean matches(MessageEvaluationContext context)
           
 void setDestination(ActiveMQDestination destination)
          The destination to send messages to if they match the filter
 void setFilter(BooleanExpression filter)
           
 void setQueue(String queue)
          Sets the destination property to the given queue name
 void setSelector(String selector)
          Sets the JMS selector used to filter messages before forwarding them to this destination
 void setTopic(String topic)
          Sets the destination property to the given topic name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredDestination

public FilteredDestination()
Method Detail

matches

public boolean matches(MessageEvaluationContext context)
                throws JMSException
Throws:
JMSException

getDestination

public ActiveMQDestination getDestination()

setDestination

public void setDestination(ActiveMQDestination destination)
The destination to send messages to if they match the filter


getSelector

public String getSelector()

setSelector

public void setSelector(String selector)
                 throws InvalidSelectorException
Sets the JMS selector used to filter messages before forwarding them to this destination

Throws:
InvalidSelectorException

getFilter

public BooleanExpression getFilter()

setFilter

public void setFilter(BooleanExpression filter)

setQueue

public void setQueue(String queue)
Sets the destination property to the given queue name


setTopic

public void setTopic(String topic)
Sets the destination property to the given topic name



Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.