Class SelectorAwareVirtualTopicInterceptor

All Implemented Interfaces:
Destination, org.apache.activemq.command.Message.MessageDestination, org.apache.activemq.Service, org.apache.activemq.thread.Task

public class SelectorAwareVirtualTopicInterceptor extends VirtualTopicInterceptor
  • Constructor Details

    • SelectorAwareVirtualTopicInterceptor

      public SelectorAwareVirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic)
  • Method Details

    • shouldDispatch

      protected boolean shouldDispatch(Broker broker, org.apache.activemq.command.Message message, Destination dest) throws IOException
      Respect the selectors of the subscriptions to ensure only matched messages are dispatched to the virtual queues, hence there is no build up of unmatched messages on these destinations
      Overrides:
      shouldDispatch in class VirtualTopicInterceptor
      Throws:
      IOException