Class 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 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()
      • getFilter

        public org.apache.activemq.filter.BooleanExpression getFilter()
      • setFilter

        public void setFilter​(org.apache.activemq.filter.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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object