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 TypeMethodDescriptionbooleanfinal longReturn the max of the highest delivered or highest received seqnofinal longfinal longfinal longgetLow()voidvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintsize()toString()voidvoidwriteTo(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:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
size
public int size() -
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-