|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.messaging.core.impl.ClusterRoundRobinDistributor
public class ClusterRoundRobinDistributor
This distributor is used when distributing to consumers of clustered queues. It maintains two round robin distributors - one corresponding to the remote receivers and one corresponding to the local receivers The local receivers always take priority over the remote receivers
Constructor Summary | |
---|---|
ClusterRoundRobinDistributor(Distributor local,
Distributor remote)
|
Method Summary | |
---|---|
boolean |
add(Receiver r)
Add a local receiver to this distributor. |
void |
addLocal(Receiver r)
|
void |
addRemote(Receiver r)
|
void |
clear()
Remove all receivers. |
boolean |
contains(Receiver r)
Does the distributor already contain the specified Receiver? |
int |
getNumberOfReceivers()
|
Delivery |
handle(DeliveryObserver observer,
MessageReference ref,
Transaction tx)
A receiver can return an active, "done" or null delivery. |
java.util.Iterator |
iterator()
|
boolean |
remove(Receiver r)
Remove a local receiver from this distributor. |
boolean |
removeLocal(Receiver r)
|
boolean |
removeRemote(Receiver r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterRoundRobinDistributor(Distributor local, Distributor remote)
Method Detail |
---|
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx)
Receiver
handle
in interface Receiver
observer
- - the component the delivery should be acknowledged to.Delivery
,
DeliveryObserver
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)
Distributor
contains
in interface Distributor
public java.util.Iterator iterator()
iterator
in interface Distributor
public int getNumberOfReceivers()
getNumberOfReceivers
in interface Distributor
public void addLocal(Receiver r)
public boolean removeLocal(Receiver r)
public void addRemote(Receiver r)
public boolean removeRemote(Receiver r)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |