Class VirtualTopicInterceptor

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

public class VirtualTopicInterceptor extends BaseVirtualDestinationFilter
A Destination which implements Virtual Topic
  • Constructor Details

  • Method Details

    • getTopic

      public Topic getTopic()
    • send

      public void send(ProducerBrokerExchange context, org.apache.activemq.command.Message message) throws Exception
      Specified by:
      send in interface Destination
      Overrides:
      send in class DestinationFilter
      Throws:
      Exception
    • send

      protected void send(ProducerBrokerExchange context, org.apache.activemq.command.Message message, org.apache.activemq.command.ActiveMQDestination destination) throws Exception
      Description copied from class: DestinationFilter
      Sends a message to the given destination which may be a wildcard
      Overrides:
      send in class DestinationFilter
      Parameters:
      context - broker context
      message - message to send
      destination - possibly wildcard destination to send the message to
      Throws:
      Exception - on error
    • shouldDispatch

      protected boolean shouldDispatch(Broker broker, org.apache.activemq.command.Message message, Destination dest) throws IOException
      Throws:
      IOException
    • getQueueConsumersWildcard

      protected org.apache.activemq.command.ActiveMQDestination getQueueConsumersWildcard(org.apache.activemq.command.ActiveMQDestination original)