Class FilteredDestination
- java.lang.Object
-
- 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
Constructors Constructor Description FilteredDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
org.apache.activemq.command.ActiveMQDestination
getDestination()
org.apache.activemq.filter.BooleanExpression
getFilter()
String
getSelector()
int
hashCode()
boolean
matches(org.apache.activemq.filter.MessageEvaluationContext context)
void
setDestination(org.apache.activemq.command.ActiveMQDestination destination)
The destination to send messages to if they match the filtervoid
setFilter(org.apache.activemq.filter.BooleanExpression filter)
void
setQueue(String queue)
Sets the destination property to the given queue namevoid
setSelector(String selector)
Sets the JMS selector used to filter messages before forwarding them to this destinationvoid
setTopic(String topic)
Sets the destination property to the given topic name
-
-
-
Constructor Detail
-
FilteredDestination
public FilteredDestination()
-
-
Method Detail
-
matches
public boolean matches(org.apache.activemq.filter.MessageEvaluationContext context) throws JMSException
- Throws:
JMSException
-
getDestination
public org.apache.activemq.command.ActiveMQDestination getDestination()
-
setDestination
public void setDestination(org.apache.activemq.command.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 org.apache.activemq.filter.BooleanExpression getFilter()
-
setFilter
public void setFilter(org.apache.activemq.filter.BooleanExpression filter)
-
-