|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.protocols.tom.SenderManager
public class SenderManager
Keeps track of all sent messages, until the final sequence number is known
| Field Summary | |
|---|---|
static long |
NOT_READY
|
| Constructor Summary | |
|---|---|
SenderManager()
|
|
| Method Summary | |
|---|---|
void |
addNewMessageToSend(MessageID messageID,
java.util.Collection<Address> destinations,
long initialSequenceNumber,
boolean deliverToMyself)
Add a new message sent |
long |
addPropose(MessageID messageID,
Address from,
long sequenceNumber)
Add a propose from a member in destination set |
void |
clear()
removes all pending messages |
java.util.Set<Address> |
getDestination(MessageID messageID)
obtains the destination set of a message |
boolean |
markSent(MessageID messageID)
Mark the message as sent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long NOT_READY
| Constructor Detail |
|---|
public SenderManager()
| Method Detail |
|---|
public void addNewMessageToSend(MessageID messageID,
java.util.Collection<Address> destinations,
long initialSequenceNumber,
boolean deliverToMyself)
messageID - the message IDdestinations - the destination setinitialSequenceNumber - the initial sequence numberdeliverToMyself - true if *this* member is in destination sent, false otherwise
public long addPropose(MessageID messageID,
Address from,
long sequenceNumber)
messageID - the message IDfrom - the originator of the proposesequenceNumber - the proposed sequence number
public boolean markSent(MessageID messageID)
messageID - the message ID
public java.util.Set<Address> getDestination(MessageID messageID)
messageID - the message ID
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||