Package org.apache.pekko.remote
Class AckedReceiveBuffer<T extends HasSequenceNumber>
java.lang.Object
org.apache.pekko.remote.AckedReceiveBuffer<T>
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
public final class AckedReceiveBuffer<T extends HasSequenceNumber>
extends Object
implements scala.Product, Serializable
Deprecated.
Classic remoting is deprecated, use Artery. Since Akka 2.6.0.
Implements an immutable receive buffer that buffers incoming messages until they can be safely delivered. This
buffer works together with a
pekko.remote.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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAckedReceiveBuffer(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends HasSequenceNumber>
SeqNoDeprecated.static <T extends HasSequenceNumber>
SeqNoDeprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.TreeSet<T>Deprecated.static <T extends HasSequenceNumber>
AckedReceiveBuffer<T>apply(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering) Deprecated.static <T extends HasSequenceNumber>
SeqNoDeprecated.static <T extends HasSequenceNumber>
SeqNoDeprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.TreeSet<T>Deprecated.scala.collection.immutable.SortedSet<T>buf()Deprecated.booleanDeprecated.<T extends HasSequenceNumber>
AckedReceiveBuffer<T>copy(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering) Deprecated.<T extends HasSequenceNumber>
SeqNoDeprecated.<T extends HasSequenceNumber>
SeqNoDeprecated.<T extends HasSequenceNumber>
scala.collection.immutable.SortedSet<T>Deprecated.Deprecated.booleanDeprecated.scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>, Ack> Deprecated.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.inthashCode()Deprecated.Deprecated.mergeFrom(AckedReceiveBuffer<T> that) Deprecated.Merges two receive buffers.intDeprecated.productElement(int x$1) Deprecated.productElementName(int x$1) Deprecated.scala.collection.Iterator<Object>Deprecated.Deprecated.Deprecated.Puts a sequenced message in the receive buffer returning a new buffer.scala.math.Ordering<T>Deprecated.toString()Deprecated.static <T extends HasSequenceNumber>
scala.Option<scala.Tuple3<SeqNo,SeqNo, scala.collection.immutable.SortedSet<T>>> unapply(AckedReceiveBuffer<T> x$0) Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Method Details
-
$lessinit$greater$default$1
Deprecated. -
$lessinit$greater$default$2
Deprecated. -
$lessinit$greater$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.TreeSet<T> $lessinit$greater$default$3()Deprecated. -
apply
public static <T extends HasSequenceNumber> AckedReceiveBuffer<T> apply(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering) Deprecated. -
apply$default$1
Deprecated. -
apply$default$2
Deprecated. -
apply$default$3
Deprecated. -
unapply
public static <T extends HasSequenceNumber> scala.Option<scala.Tuple3<SeqNo,SeqNo, unapplyscala.collection.immutable.SortedSet<T>>> (AckedReceiveBuffer<T> x$0) Deprecated. -
lastDelivered
Deprecated. -
cumulativeAck
Deprecated. -
buf
Deprecated. -
seqOrdering
Deprecated. -
receive
Deprecated.Puts a sequenced message in the receive buffer returning a new buffer.- Parameters:
arrivedMsg- message to be put into the buffer.- Returns:
- The updated buffer containing the message.
-
extractDeliverable
public scala.Tuple3<AckedReceiveBuffer<T>,scala.collection.immutable.Seq<T>, extractDeliverable()Ack> Deprecated.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.- Returns:
- Triplet of the updated buffer, messages that can be delivered and the updated acknowledgement.
-
mergeFrom
Deprecated.Merges two receive buffers. Merging preserves sequencing of messages, and drops all messages that has been safely acknowledged by any of the participating buffers. Also updates the expected sequence numbers.- Parameters:
that- The receive buffer to merge with- Returns:
- The merged receive buffer.
-
toString
Deprecated. -
copy
public <T extends HasSequenceNumber> AckedReceiveBuffer<T> copy(SeqNo lastDelivered, SeqNo cumulativeAck, scala.collection.immutable.SortedSet<T> buf, scala.math.Ordering<T> seqOrdering) Deprecated. -
copy$default$1
Deprecated. -
copy$default$2
Deprecated. -
copy$default$3
Deprecated. -
productPrefix
Deprecated.- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()Deprecated.- Specified by:
productArityin interfacescala.Product
-
productElement
Deprecated.- Specified by:
productElementin interfacescala.Product
-
productIterator
Deprecated.- Specified by:
productIteratorin interfacescala.Product
-
canEqual
Deprecated.- Specified by:
canEqualin interfacescala.Equals
-
productElementName
Deprecated.- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-