org.apache.activemq.broker.region.policy
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
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDispatchSelector
public SimpleDispatchSelector(ActiveMQDestination destination)
- Parameters:
destination
-
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 interface DispatchSelector
- Returns:
- true if can dispatch
- Throws:
Exception
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.