|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.messaging.core.impl.MessagingQueue.DistributorWrapper
protected class MessagingQueue.DistributorWrapper
| Constructor Summary | |
|---|---|
protected |
MessagingQueue.DistributorWrapper(Distributor distributor)
|
| Method Summary | |
|---|---|
boolean |
add(Receiver receiver)
Add a local receiver to this distributor. |
void |
clear()
Remove all receivers. |
boolean |
contains(Receiver receiver)
Does the distributor already contain the specified Receiver? |
int |
getNumberOfReceivers()
|
Delivery |
handle(DeliveryObserver observer,
MessageReference reference,
Transaction tx)
A receiver can return an active, "done" or null delivery. |
java.util.Iterator |
iterator()
|
boolean |
remove(Receiver receiver)
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 |
|---|
protected MessagingQueue.DistributorWrapper(Distributor distributor)
| Method Detail |
|---|
public Delivery handle(DeliveryObserver observer,
MessageReference reference,
Transaction tx)
Receiver
handle in interface Receiverobserver - - the component the delivery should be acknowledged to.Delivery,
DeliveryObserverpublic boolean add(Receiver receiver)
Distributor
add in interface Distributorpublic void clear()
Distributor
clear in interface Distributorpublic boolean contains(Receiver receiver)
Distributor
contains in interface Distributorpublic int getNumberOfReceivers()
getNumberOfReceivers in interface Distributorpublic java.util.Iterator iterator()
iterator in interface Distributorpublic boolean remove(Receiver receiver)
Distributor
remove in interface Distributor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||