public Queue(BrokerService brokerService, final ActiveMQDestination destination, MessageStore store, DestinationStatistics parentStats, TaskRunnerFactory taskFactory) throws Exception { super(brokerService, store, destination, parentStats); this.taskFactory = taskFactory; this.dispatchSelector = new QueueDispatchSelector(destination); if (store != null) { store.registerIndexListener(this); } }
if (dispatchSelector.canSelect(s, node) && assignMessageGroup(s, (QueueMessageReference)node) && !((QueueMessageReference) node).isAcked() ) { && !dispatchSelector.isExclusiveConsumer(target)) { consumersLock.writeLock().lock(); try {
Subscription exclusiveConsumer = dispatchSelector.getExclusiveConsumer(); if (exclusiveConsumer == null) { exclusiveConsumer = sub; exclusiveConsumer = sub; dispatchSelector.setExclusiveConsumer(exclusiveConsumer);
public void resumeDispatch() { dispatchSelector.resume(); wakeup(); }
public void pauseDispatch() { dispatchSelector.pause(); }
public boolean isDispatchPaused() { return dispatchSelector.isPaused(); }
public void resumeDispatch() { dispatchSelector.resume(); wakeup(); }
public void pauseDispatch() { dispatchSelector.pause(); }
public boolean isDispatchPaused() { return dispatchSelector.isPaused(); }
removeFromConsumerList(sub); if (sub.getConsumerInfo().isExclusive()) { Subscription exclusiveConsumer = dispatchSelector.getExclusiveConsumer(); if (exclusiveConsumer == sub) { exclusiveConsumer = null; dispatchSelector.setExclusiveConsumer(exclusiveConsumer); dispatchSelector.setExclusiveConsumer(exclusiveConsumer);
if (dispatchSelector.canSelect(s, node) && assignMessageGroup(s, (QueueMessageReference)node) && !((QueueMessageReference) node).isAcked() ) { && !dispatchSelector.isExclusiveConsumer(target)) { consumersLock.writeLock().lock(); try {
public Queue(BrokerService brokerService, final ActiveMQDestination destination, MessageStore store, DestinationStatistics parentStats, TaskRunnerFactory taskFactory) throws Exception { super(brokerService, store, destination, parentStats); this.taskFactory = taskFactory; this.dispatchSelector = new QueueDispatchSelector(destination); if (store != null) { store.registerIndexListener(this); } }
public void resumeDispatch() { dispatchSelector.resume(); wakeup(); }
public void pauseDispatch() { dispatchSelector.pause(); }
public boolean isDispatchPaused() { return dispatchSelector.isPaused(); }
Subscription exclusiveConsumer = dispatchSelector.getExclusiveConsumer(); if (exclusiveConsumer == null) { exclusiveConsumer = sub; exclusiveConsumer = sub; dispatchSelector.setExclusiveConsumer(exclusiveConsumer);
if (dispatchSelector.canSelect(s, node) && assignMessageGroup(s, (QueueMessageReference)node) && !((QueueMessageReference) node).isAcked() ) { && !dispatchSelector.isExclusiveConsumer(target)) { consumersLock.writeLock().lock(); try {
public Queue(BrokerService brokerService, final ActiveMQDestination destination, MessageStore store, DestinationStatistics parentStats, TaskRunnerFactory taskFactory) throws Exception { super(brokerService, store, destination, parentStats); this.taskFactory = taskFactory; this.dispatchSelector = new QueueDispatchSelector(destination); if (store != null) { store.registerIndexListener(this); } }
public void resumeDispatch() { dispatchSelector.resume(); wakeup(); }
public void pauseDispatch() { dispatchSelector.pause(); }