|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.protocols.tom.DeliveryManagerImpl
public class DeliveryManagerImpl
The implementation of the Delivery Manager
| Constructor Summary | |
|---|---|
DeliveryManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addNewMessageToDeliver(MessageID messageID,
Message message,
long sequenceNumber)
Add a new group message to be deliver |
void |
clear()
remove all the pending messages |
void |
deliverSingleDestinationMessage(Message msg)
delivers a message that has only as destination member this node |
java.util.Set<org.jgroups.protocols.tom.DeliveryManagerImpl.MessageInfo> |
getMessageSet()
It is used for testing (see the messages in JMX) |
java.util.List<Message> |
getNextMessagesToDeliver()
returns an ordered list with the messages to be deliver. |
void |
markReadyToDeliver(MessageID messageID,
long finalSequenceNumber)
marks the message as ready to deliver and set the final sequence number (to be ordered) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeliveryManagerImpl()
| Method Detail |
|---|
public void addNewMessageToDeliver(MessageID messageID,
Message message,
long sequenceNumber)
messageID - the message IDmessage - the message (needed to be deliver later)sequenceNumber - the initial sequence number
public void markReadyToDeliver(MessageID messageID,
long finalSequenceNumber)
messageID - the message IDfinalSequenceNumber - the final sequence number
public java.util.List<Message> getNextMessagesToDeliver()
throws java.lang.InterruptedException
DeliveryManager
getNextMessagesToDeliver in interface DeliveryManagerjava.lang.InterruptedException - if it is interruptedpublic void clear()
public void deliverSingleDestinationMessage(Message msg)
msg - the messagepublic java.util.Set<org.jgroups.protocols.tom.DeliveryManagerImpl.MessageInfo> getMessageSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||