Package org.jgroups.util
Class Digest.Entry
java.lang.Object
org.jgroups.util.Digest.Entry
- All Implemented Interfaces:
Externalizable
,Serializable
,Streamable
- Enclosing class:
Digest
Class keeping track of the lowest and highest sequence numbers delivered, and the highest
sequence numbers received, per member. This class is immutable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntry()
Entry
(long low_seqno, long highest_delivered_seqno) Entry
(long low_seqno, long highest_delivered_seqno, long highest_received_seqno) Entry
(Digest.Entry other) -
Method Summary
Modifier and TypeMethodDescriptionboolean
final long
Return the max of the highest delivered or highest received seqnofinal long
final long
final long
getLow()
void
void
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedint
size()
toString()
void
void
writeTo
(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Constructor Details
-
Entry
public Entry() -
Entry
public Entry(long low_seqno, long highest_delivered_seqno, long highest_received_seqno) -
Entry
public Entry(long low_seqno, long highest_delivered_seqno) -
Entry
-
-
Method Details
-
getLow
public final long getLow() -
getHighestDeliveredSeqno
public final long getHighestDeliveredSeqno() -
getHighestReceivedSeqno
public final long getHighestReceivedSeqno() -
getHighest
public final long getHighest()Return the max of the highest delivered or highest received seqno -
equals
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
size
public int size() -
writeTo
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeTo
in interfaceStreamable
- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFrom
in interfaceStreamable
- Throws:
IOException
IllegalAccessException
InstantiationException
-