AckedSendBuffer
org.apache.pekko.remote.AckedSendBuffer
final case class AckedSendBuffer[T <: HasSequenceNumber](capacity: Int, nonAcked: IndexedSeq[T], nacked: IndexedSeq[T], maxSeq: SeqNo)
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.
Value parameters
- capacity
-
Maximum number of messages the buffer is willing to accept. If reached pekko.remote.ResendBufferCapacityReachedException is thrown.
- maxSeq
-
The maximum sequence number that has been stored in this buffer. Messages having lower sequence number will be not stored but rejected with java.lang.IllegalArgumentException
- nacked
-
Sequence of messages that has been explicitly negative acknowledged.
- nonAcked
-
Sequence of messages that has not yet been acknowledged.
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Graph
-
- Supertypes
Members list
In this article