|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.protocols.tom.SequenceNumberManager
public class SequenceNumberManager
Manages the messages sequence number (keeps it up-to-date)
Constructor Summary | |
---|---|
SequenceNumberManager()
|
Method Summary | |
---|---|
long |
getAndIncrement()
|
void |
update(long otherSequenceNumber)
updates the sequence number to the maximum between them |
long |
updateAndGet(long otherSequenceNumber)
updates the sequence number and returns the next, that will be used a propose sequence number |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceNumberManager()
Method Detail |
---|
public long getAndIncrement()
public void update(long otherSequenceNumber)
otherSequenceNumber
- the sequence number receivedpublic long updateAndGet(long otherSequenceNumber)
otherSequenceNumber
- the sequence number received
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |