AckedReceiveBuffer

org.apache.pekko.remote.AckedReceiveBuffer
final case class AckedReceiveBuffer[T <: HasSequenceNumber](lastDelivered: SeqNo, cumulativeAck: SeqNo, buf: SortedSet[T])(implicit seqOrdering: Ordering[T])

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.

Value parameters

buf

Buffer of messages that are waiting for delivery

cumulativeAck

The highest sequence number received so far.

lastDelivered

Sequence number of the last message that has been delivered.

Attributes

Deprecated
true
Source
AckedDelivery.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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.

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.

Attributes

Returns

Triplet of the updated buffer, messages that can be delivered and the updated acknowledgement.

Source
AckedDelivery.scala

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.

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.

Value parameters

that

The receive buffer to merge with

Attributes

Returns

The merged receive buffer.

Source
AckedDelivery.scala
def receive(arrivedMsg: T): AckedReceiveBuffer[T]

Puts a sequenced message in the receive buffer returning a new buffer.

Puts a sequenced message in the receive buffer returning a new buffer.

Value parameters

arrivedMsg

message to be put into the buffer.

Attributes

Returns

The updated buffer containing the message.

Source
AckedDelivery.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
AckedDelivery.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Implicits

Implicits

implicit val seqOrdering: Ordering[T]

Attributes

Source
AckedDelivery.scala