Class SimpleDispatchSelector
- java.lang.Object
-
- org.apache.activemq.broker.region.policy.SimpleDispatchSelector
-
- All Implemented Interfaces:
DispatchSelector
- Direct Known Subclasses:
QueueDispatchSelector
public class SimpleDispatchSelector extends Object implements DispatchSelector
Simple dispatch policy that determines if a message can be sent to a subscription
-
-
Constructor Summary
Constructors Constructor Description SimpleDispatchSelector(ActiveMQDestination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDispatch(Subscription subscription, MessageReference node)
return true if a subscription can dispatch a message reference
-
-
-
Constructor Detail
-
SimpleDispatchSelector
public SimpleDispatchSelector(ActiveMQDestination destination)
- Parameters:
destination
-
-
-
Method Detail
-
canDispatch
public boolean canDispatch(Subscription subscription, MessageReference node) throws Exception
Description copied from interface:DispatchSelector
return true if a subscription can dispatch a message reference- Specified by:
canDispatch
in interfaceDispatchSelector
- Returns:
- true if can dispatch
- Throws:
Exception
-
-