Class FilteredDestination
java.lang.Object
org.apache.activemq.broker.region.virtual.FilteredDestination
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.activemq.command.ActiveMQDestinationorg.apache.activemq.filter.BooleanExpressioninthashCode()booleanmatches(org.apache.activemq.filter.MessageEvaluationContext context) voidsetDestination(org.apache.activemq.command.ActiveMQDestination destination) The destination to send messages to if they match the filtervoidsetFilter(org.apache.activemq.filter.BooleanExpression filter) voidSets the destination property to the given queue namevoidsetSelector(String selector) Sets the JMS selector used to filter messages before forwarding them to this destinationvoidSets the destination property to the given topic name
-
Constructor Details
-
FilteredDestination
public FilteredDestination()
-
-
Method Details
-
matches
public boolean matches(org.apache.activemq.filter.MessageEvaluationContext context) throws jakarta.jms.JMSException - Throws:
jakarta.jms.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
-
setSelector
Sets the JMS selector used to filter messages before forwarding them to this destination- Throws:
jakarta.jms.InvalidSelectorException
-
getFilter
public org.apache.activemq.filter.BooleanExpression getFilter() -
setFilter
public void setFilter(org.apache.activemq.filter.BooleanExpression filter) -
setQueue
Sets the destination property to the given queue name -
setTopic
Sets the destination property to the given topic name -
hashCode
public int hashCode() -
equals
-