Class StrictOrderDispatchPolicy
java.lang.Object
org.apache.activemq.broker.region.policy.StrictOrderDispatchPolicy
- All Implemented Interfaces:
DispatchPolicy
Dispatch policy that causes every subscription to see messages in the same
order.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StrictOrderDispatchPolicy
public StrictOrderDispatchPolicy()
-
-
Method Details
-
dispatch
public boolean dispatch(org.apache.activemq.broker.region.MessageReference node, org.apache.activemq.filter.MessageEvaluationContext msgContext, List consumers) throws Exception Description copied from interface:DispatchPolicyDecides how to dispatch a selected message to a collection of consumers. A safe approach is to dispatch to every subscription that matches. The list will be safe to iterate over when this method is called- Specified by:
dispatchin interfaceDispatchPolicy- Parameters:
node-msgContext-consumers-- Returns:
- true if dispatched
- Throws:
Exception- See Also:
-