Class QueueDispatchSelector
- java.lang.Object
-
- org.apache.activemq.broker.region.policy.SimpleDispatchSelector
-
- org.apache.activemq.broker.region.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 Summary
Constructors Constructor Description QueueDispatchSelector(ActiveMQDestination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSelect(Subscription subscription, MessageReference m)
Subscription
getExclusiveConsumer()
boolean
isExclusiveConsumer(Subscription s)
boolean
isPaused()
void
pause()
void
resume()
void
setExclusiveConsumer(Subscription exclusiveConsumer)
-
Methods inherited from class org.apache.activemq.broker.region.policy.SimpleDispatchSelector
canDispatch
-
-
-
-
Constructor Detail
-
QueueDispatchSelector
public QueueDispatchSelector(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, MessageReference m) throws Exception
- Throws:
Exception
-
pause
public void pause()
-
resume
public void resume()
-
isPaused
public boolean isPaused()
-
-