org.apache.activemq.broker.region.policy
Class SimpleDispatchSelector

java.lang.Object
  extended by 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
SimpleDispatchSelector(ActiveMQDestination destination)
           
 
Method Summary
 boolean canDispatch(Subscription subscription, MessageReference node)
          return true if a subscription can dispatch a message reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface DispatchSelector
Returns:
true if can dispatch
Throws:
Exception


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.