Class SimpleDispatchSelector
java.lang.Object
org.apache.activemq.broker.region.policy.SimpleDispatchSelector
- All Implemented Interfaces:
DispatchSelector
- Direct Known Subclasses:
QueueDispatchSelector
Simple dispatch policy that determines if a message can be sent to a subscription
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleDispatchSelector(org.apache.activemq.command.ActiveMQDestination destination) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDispatch(Subscription subscription, org.apache.activemq.broker.region.MessageReference node) return true if a subscription can dispatch a message reference
-
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:DispatchSelectorreturn true if a subscription can dispatch a message reference- Specified by:
canDispatchin interfaceDispatchSelector- Returns:
- true if can dispatch
- Throws:
Exception
-