public final class AckedReceiveBuffer<T extends HasSequenceNumber>
extends java.lang.Object
implements scala.Product, scala.Serializable
AckedSendBuffer
on the sender() side.
param: lastDelivered Sequence number of the last message that has been delivered. param: cumulativeAck The highest sequence number received so far. param: buf Buffer of messages that are waiting for delivery
Constructor and Description |
---|
AckedReceiveBuffer(SeqNo lastDelivered,
SeqNo cumulativeAck,
scala.collection.immutable.SortedSet<T> buf,
scala.math.Ordering<T> seqOrdering) |
Modifier and Type | Method and Description |
---|---|
scala.collection.immutable.SortedSet<T> |
buf() |
abstract static boolean |
canEqual(java.lang.Object that) |
SeqNo |
cumulativeAck() |
abstract static boolean |
equals(java.lang.Object that) |
scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>,Ack> |
extractDeliverable()
Extract all messages that could be safely delivered, an updated ack to be sent to the sender(), and an updated
buffer that has the messages removed that can be delivered.
|
SeqNo |
lastDelivered() |
AckedReceiveBuffer<T> |
mergeFrom(AckedReceiveBuffer<T> that)
Merges two receive buffers.
|
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
AckedReceiveBuffer<T> |
receive(T arrivedMsg)
Puts a sequenced message in the receive buffer returning a new buffer.
|
scala.math.Ordering<T> |
seqOrdering() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public SeqNo lastDelivered()
public SeqNo cumulativeAck()
public scala.collection.immutable.SortedSet<T> buf()
public scala.math.Ordering<T> seqOrdering()
public AckedReceiveBuffer<T> receive(T arrivedMsg)
arrivedMsg
- message to be put into the buffer.public scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>,Ack> extractDeliverable()
public AckedReceiveBuffer<T> mergeFrom(AckedReceiveBuffer<T> that)
that
- The receive buffer to merge withpublic java.lang.String toString()
toString
in class java.lang.Object