Class SimpleDispatchSelector

java.lang.Object
org.apache.activemq.broker.region.policy.SimpleDispatchSelector
All Implemented Interfaces:
DispatchSelector
Direct Known Subclasses:
QueueDispatchSelector

public class SimpleDispatchSelector extends Object implements DispatchSelector
Simple dispatch policy that determines if a message can be sent to a subscription
  • Constructor Details

    • SimpleDispatchSelector

      public SimpleDispatchSelector(org.apache.activemq.command.ActiveMQDestination destination)
      Parameters:
      destination -
  • Method Details

    • canDispatch

      public boolean canDispatch(Subscription subscription, org.apache.activemq.broker.region.MessageReference node) throws Exception
      Description copied from interface: DispatchSelector
      return true if a subscription can dispatch a message reference
      Specified by:
      canDispatch in interface DispatchSelector
      Returns:
      true if can dispatch
      Throws:
      Exception