Class QueueDispatchSelector

  • All Implemented Interfaces:
    DispatchSelector

    public class QueueDispatchSelector
    extends SimpleDispatchSelector
    Queue dispatch policy that determines if a message can be sent to a subscription
    • Constructor Detail

      • QueueDispatchSelector

        public QueueDispatchSelector​(org.apache.activemq.command.ActiveMQDestination destination)
        Parameters:
        destination -
    • Method Detail

      • getExclusiveConsumer

        public Subscription getExclusiveConsumer()
      • setExclusiveConsumer

        public void setExclusiveConsumer​(Subscription exclusiveConsumer)
      • isExclusiveConsumer

        public boolean isExclusiveConsumer​(Subscription s)
      • canSelect

        public boolean canSelect​(Subscription subscription,
                                 org.apache.activemq.broker.region.MessageReference m)
                          throws Exception
        Throws:
        Exception
      • pause

        public void pause()
      • resume

        public void resume()
      • isPaused

        public boolean isPaused()