Class QueueDispatchSelector
java.lang.Object
org.apache.activemq.broker.region.policy.SimpleDispatchSelector
org.apache.activemq.broker.region.QueueDispatchSelector
- All Implemented Interfaces:
DispatchSelector
Queue dispatch policy that determines if a message can be sent to a subscription
-
Constructor Summary
ConstructorsConstructorDescriptionQueueDispatchSelector(org.apache.activemq.command.ActiveMQDestination destination) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSelect(Subscription subscription, org.apache.activemq.broker.region.MessageReference m) booleanbooleanisPaused()voidpause()voidresume()voidsetExclusiveConsumer(Subscription exclusiveConsumer) Methods inherited from class org.apache.activemq.broker.region.policy.SimpleDispatchSelector
canDispatch
-
Constructor Details
-
QueueDispatchSelector
public QueueDispatchSelector(org.apache.activemq.command.ActiveMQDestination destination) - Parameters:
destination-
-
-
Method Details
-
getExclusiveConsumer
-
setExclusiveConsumer
-
isExclusiveConsumer
-
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()
-