Package org.jgroups.util
Class Seqno
java.lang.Object
org.jgroups.util.Seqno
- Direct Known Subclasses:
SeqnoRange
Keeps track of a single message to retransmit
- Author:
- Bela Ban
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DUMMY
public static final byte DUMMY- See Also:
-
RECEIVED
public static final byte RECEIVED- See Also:
-
-
Constructor Details
-
Seqno
public Seqno(long low) -
Seqno
public Seqno(long num, boolean dummy) Only used to compare a long against a range in a TreeSet / TreeMap. Used to find a range given a seqno- Parameters:
num-dummy-
-
-
Method Details
-
isDummy
public boolean isDummy() -
getLow
public long getLow() -
contains
public boolean contains(long num) -
get
public boolean get(long num) -
set
public void set(long num) -
clear
public void clear(long num) -
getNumberOfReceivedMessages
public int getNumberOfReceivedMessages() -
getNumberOfMissingMessages
public int getNumberOfMissingMessages() -
size
public int size() -
getMessagesToRetransmit
-
hashCode
public int hashCode() -
equals
-
toString
-
print
-
received
protected boolean received()
-