Package org.apache.pekko.remote
Class AckedSendBuffer<T extends HasSequenceNumber>
java.lang.Object
org.apache.pekko.remote.AckedSendBuffer<T>
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
public final class AckedSendBuffer<T extends HasSequenceNumber>
extends Object
implements scala.Product, Serializable
Deprecated.
Classic remoting is deprecated, use Artery. Since Akka 2.6.0.
Implements an immutable resend buffer that buffers messages until they have been acknowledged. Properly removes messages
when an ack is received. This buffer works together with
pekko.remote.AckedReceiveBuffer on the receiving end.
param: capacity Maximum number of messages the buffer is willing to accept. If reached pekko.remote.ResendBufferCapacityReachedException
is thrown.
param: nonAcked Sequence of messages that has not yet been acknowledged.
param: nacked Sequence of messages that has been explicitly negative acknowledged.
param: maxSeq The maximum sequence number that has been stored in this buffer. Messages having lower sequence number
will be not stored but rejected with IllegalArgumentException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAckedSendBuffer(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>Deprecated.static <T extends HasSequenceNumber>
SeqNoDeprecated.acknowledge(Ack ack) Deprecated.Processes an incoming acknowledgement and returns a new buffer with only unacknowledged elements remaining.static <T extends HasSequenceNumber>
AckedSendBuffer<T>apply(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq) Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>Deprecated.static <T extends HasSequenceNumber>
scala.collection.immutable.Vector<T>Deprecated.static <T extends HasSequenceNumber>
SeqNoDeprecated.Deprecated.Puts a new message in the buffer.booleanDeprecated.intcapacity()Deprecated.<T extends HasSequenceNumber>
AckedSendBuffer<T>copy(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq) Deprecated.<T extends HasSequenceNumber>
intDeprecated.<T extends HasSequenceNumber>
scala.collection.immutable.IndexedSeq<T>Deprecated.<T extends HasSequenceNumber>
scala.collection.immutable.IndexedSeq<T>Deprecated.<T extends HasSequenceNumber>
SeqNoDeprecated.booleanDeprecated.inthashCode()Deprecated.maxSeq()Deprecated.scala.collection.immutable.IndexedSeq<T>nacked()Deprecated.scala.collection.immutable.IndexedSeq<T>nonAcked()Deprecated.intDeprecated.productElement(int x$1) Deprecated.productElementName(int x$1) Deprecated.scala.collection.Iterator<Object>Deprecated.Deprecated.toString()Deprecated.static <T extends HasSequenceNumber>
scala.Option<scala.Tuple4<Object,scala.collection.immutable.IndexedSeq<T>, scala.collection.immutable.IndexedSeq<T>, SeqNo>> unapply(AckedSendBuffer<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$2
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> $lessinit$greater$default$2()Deprecated. -
$lessinit$greater$default$3
public static <T extends HasSequenceNumber> scala.collection.immutable.Vector<T> $lessinit$greater$default$3()Deprecated. -
$lessinit$greater$default$4
Deprecated. -
apply
public static <T extends HasSequenceNumber> AckedSendBuffer<T> apply(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq) Deprecated. -
apply$default$2
Deprecated. -
apply$default$3
Deprecated. -
apply$default$4
Deprecated. -
unapply
public static <T extends HasSequenceNumber> scala.Option<scala.Tuple4<Object,scala.collection.immutable.IndexedSeq<T>, unapplyscala.collection.immutable.IndexedSeq<T>, SeqNo>> (AckedSendBuffer<T> x$0) Deprecated. -
capacity
public int capacity()Deprecated. -
nonAcked
Deprecated. -
nacked
Deprecated. -
maxSeq
Deprecated. -
acknowledge
Deprecated.Processes an incoming acknowledgement and returns a new buffer with only unacknowledged elements remaining.- Parameters:
ack- The received acknowledgement- Returns:
- An updated buffer containing the remaining unacknowledged messages
-
buffer
Deprecated.Puts a new message in the buffer. ThrowsIllegalArgumentExceptionif an out-of-sequence message is attempted to be stored.- Parameters:
msg- The message to be stored for possible future retransmission.- Returns:
- The updated buffer
-
toString
Deprecated. -
copy
public <T extends HasSequenceNumber> AckedSendBuffer<T> copy(int capacity, scala.collection.immutable.IndexedSeq<T> nonAcked, scala.collection.immutable.IndexedSeq<T> nacked, SeqNo maxSeq) Deprecated. -
copy$default$1
Deprecated. -
copy$default$2
Deprecated. -
copy$default$3
Deprecated. -
copy$default$4
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.
-