|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.local.FirstReceiverPointToPointRouter
This router deliver the reference to a maximum of one of the router's receivers. It will always favour the first receiver in the internal list of receivers, but will retry the next one (and the next one...) if a previous one does not want to accept the message. If the router has several receivers (e.g. the case of multiple consumers on a queue) then if the consumers are fast then the first receiver will tend to get most or all of the references
Constructor Summary | |
FirstReceiverPointToPointRouter()
|
Method Summary | |
boolean |
add(Receiver r)
Add a local receiver to this distributor. |
void |
clear()
Remove all receivers. |
boolean |
contains(Receiver r)
|
java.util.Set |
handle(DeliveryObserver observer,
Routable routable,
Transaction tx)
Returns a set of Delivery instances. |
java.util.Iterator |
iterator()
|
boolean |
remove(Receiver r)
Remove a local receiver from this distributor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FirstReceiverPointToPointRouter()
Method Detail |
public java.util.Set handle(DeliveryObserver observer, Routable routable, Transaction tx)
Router
handle
in interface Router
public boolean add(Receiver r)
Distributor
add
in interface Distributor
public boolean remove(Receiver r)
Distributor
remove
in interface Distributor
public void clear()
Distributor
clear
in interface Distributor
public boolean contains(Receiver r)
contains
in interface Distributor
public java.util.Iterator iterator()
iterator
in interface Distributor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |