Package org.jgroups.util
Class Digest.Entry
- java.lang.Object
-
- org.jgroups.util.Digest.Entry
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Streamable
- Enclosing class:
- Digest
public static class Digest.Entry extends java.lang.Object implements java.io.Externalizable, Streamable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Entry()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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetHighest()Return the max of the highest delivered or highest received seqnolonggetHighestDeliveredSeqno()longgetHighestReceivedSeqno()longgetLow()voidreadExternal(java.io.ObjectInput in)voidreadFrom(java.io.DataInputStream in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedintsize()java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)voidwriteTo(java.io.DataOutputStream out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Constructor Detail
-
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
public Entry(Digest.Entry other)
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
size
public int size()
-
writeTo
public void writeTo(java.io.DataOutputStream out) throws java.io.IOExceptionDescription 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:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationExceptionDescription 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:
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
-